Possible Duplicate:
pass password to su/sudo/ssh
SSH in shell scipt with password
Is there any possibility I can pass password for ssh command
ssh root@10.20.30.40 | echo "Password" (or)
echo "Password" | ssh root@10.20.30.40 (or) a script like below
pw1="Password"
ssh -t root@168.56.64.245 <<< EOF
$pw1
EOF
Any solution can be helpful.
I was on windows and I was connecting to Linux host with putty and from that Linux to another Linux host. The problem is I can't use any 3rd party tools on Linux hosts and I can't add rsa-keys also.