Click to See Complete Forum and Search --> : Small shell script question......?


Nick Wilson
11-15-2001, 07:38 PM
Hi all

I'm trying to write a very small shell script to help me ssh to a remote server quickly.

I can't work out how to let the script give the password.

SCRIPT

ssh myuserName@www.myhost.com

END SCRIPT

thats the easy bit but how so I let it also enter my password?

Much thanks

wendo
11-15-2001, 07:57 PM
Try ssh host.com -l <user> password <passy>

fateswarm
11-15-2001, 08:12 PM
Let the pass option out, it is dangerous have passwords in ascii format lying around. Instead, it will ask you for a password.

ph34r
11-15-2001, 11:11 PM
Or you could setup keybased authentication.... try ssh-agent too.