|
ssh - passing password in shell script
I have a requirement, I need to run a command at remote system using a ssh. Is there any way we can pass the username and password in shell script to the ssh command as we did it in one of the shell script for FTP.
ftp -n $i <<!EOF >>
user Username $PASSWD
cd /home/scripts
get $FILE\_up\_test
bye
!EOF
-----
My problem is I can't use rsh.
Is there any simple way other then using RSA based public and private keys- its bit tuff.
|