I execute the following command:
ssh -l admin hostname command
Each time I execute it, I am asked to enter a password. How can I automatically provide it with a password since I am going to put this in a bash script?
|
I execute the following command:
Each time I execute it, I am asked to enter a password. How can I automatically provide it with a password since I am going to put this in a bash script? |
||||
|
|
No problem. Make keys without a password: http://linuxproblem.org/art_9.html |
|||
|
|
|
If ssh server not support publickey, use expect script
And run
|
|||
|
|