I am using Putty to connect to host xxxxxx. I want to produce a shell script in which I should give the command ssh user@yyyyyy
along with my password instead of giving it when prompted.
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
||||
This is an unsafe practice. You should never store your SSH password in plain text. Use an encrypted key. The best-practice method is to use SSH keys.
PuTTYGEN.exe is the tool you use to generate the keys on Windows. ssh-keygen is the tool you use to generate the keys on Linux. |
|||
|
You can use this command |
|||||||||||||||||
|
ps
. – Patrick Dec 16 '13 at 7:06