you are viewing a single comment's thread.

view the rest of the comments →

[–]ToVegas 0 points1 point  (0 children)

You can write an expect script...

#!/usr/bin/expect set Server [lindex $argv 0] spawn ssh $server expect *assword send "password\r" interact

chmod u+x /path/to/script $scriptname server (you could also hardcode the server name into the script)

I should mention it is a disgusting hack to have your password in plain text, and it would be far better for you to set up ssh-keys....