I have Windows 7 running on my PC, and am using Putty.exe
to connect to Red-Hat server, somewhere along the network.
Usually, I double-click the Putty.exe
file, choose a session, and press 'open'.
Then I entered my username and password, and was ready-to-go.
I want to automate this process.
So, I've done some reading (even on similar questions asked over here), and tried the command-line approach. In the command line I typed in:
Putty.exe myusername@myserver -pw mypass
But got "putty Fatal error": 'unable to authenticate' error.
I'm guessing that I'm using the SSH protocol, trying to connect from the command line, but don't know which SSH (1 or 2), and don't think it matters. I've read about private-key/public-key method, but as for now - I want to stick with the username/password method.
Thanks to Celeritas' comment, I've tried to used auto-login method in Putty window - but got only 'Auto-login username' field, and not 'Auto-login password'. Also worth mentioning is the fact that I've got only the Putty.exe
file, and without other helping tools, such as PuTTYgen.exe
.
Thank you.