Trying to ssh from a Sun Solaris box to a Cisco router and want to use a script to log in automatically without it prompting for a username and password.
Looks like you can use ssh -l to specify a username but there doesnt appear to be a way to send the password, so it still prompts for this.
I understand that if I was ssh to another unix box I could probably use the 'expects' command and do it this way but I guess its no good for a cisco router.
At the moment, I've got a file, called commands.txt which contains the cisco commands. Then my Solaris script runs a command as follows:-
ssh -l user < commands.txt
So basically, once logged in the cisco commands are run automatically. However, the password is the problem.
Anyone know of any way around this?