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 [email protected] | echo "Password" (or)
echo "Password" | ssh [email protected] (or) a script like below
pw1="Password"
ssh -t [email protected] <<< 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.