Plink.exe “Login as” error

Using plink.exe at the command line allows for all the functionality of PuTTY from a Windows batchfile:

plink.exe -ssh -pw password user@10.0.0.1 command

In spite of providing the username and password this command, you may find that you are still prompted to “Login as:”.

To fix this you must delete some of the registry keys created by PuTTY for saved sessions. Any subkeys of:

HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions

should be deleted.

The PuTTY application will continue to function as normal without these keys, but your saved sessions inside PuTTY will be lost.

Leave a Reply

Your email address will not be published. Required fields are marked *

*