user defined input in shell script
i want ssh a remote server through shell script with predefines username and passwd
i dont know how to use expect command to do that please help me |
Why do you need expect? Can you not just use read and then on execution enter your password?
|
I just want to give some user defined input
because daily i access many server and sometimes i use same commands so that i want to use it. |
You could use Expect, but it's very risky (security) to put usernames+passwds in a script.
How about ssh auth-keys or ssh-agent? |
yes, i agree to ssh rsa auth and i use this for my regular server,
i just want to use it for my other uses. well thanks |
All times are GMT -5. The time now is 04:20 AM. |