I use a small programm = sshpass to use ssh in a script to execute commands on linux routers
Is there a alternative to sshpass because sshpass works at the moment not correctly (Bugs) - incompatibilities with the sshclient
|
feedback
|
|
Here is its alternative available: http://stackoverflow.com/questions/714915/using-the-passwd-command-from-within-a-shell-script but this is NEVER recommended as it is a serious security weakness and can lead your system open to anyone. better to setup password-less ssh login to the machines on which you want to run specific commands. | |||||||||||
feedback
|
|
It didn't look like anyone mentioned expect yet: http://linux.die.net/man/1/expect | |||
|
feedback
|