script that can give login password for "ssh" without involving STDIN

Hi Folks,
I am writing a shell script that can logon to remote machine automatically. But, I am facing one problem. I am using "ssh" command in script and while login into remote machine it asks for passowrd and it stops for STDIN input for password. I want my script to supply password automatically so that it doesn't stop and wait for passowrd to enter from STDIN input. Is there any workaround for this problem?:confused:

you can use Expect to provide the password

also check if you can generate and use SSH key

I agree with Yogesh Sawant, ssh is perfect for this.