First you need to setup your Putty Configuration, for example:
Servers are saved as sessions and Auto-login username is specified
In KeepPass you need to configure 1 entry per server. The URL entry is what makes KeePass more than a list of passwords.
If putty is in your $PATH then the command you typed in the URL field above (putty -load
9 comments:
Great! I was wondering how to link putty and sftp services with the same account. I suppose it's not possible.
Regards
cmd://"C:\Program Files\PuTTY\putty.exe" -load {TITLE} -pw {PASSWORD}
What about if we should go through a hopping station before logging to the real server?
Thanks for the tip. Much appreciated.
Note that, on Windows 7, KeePass doesn't seem to pick up changes to the PATH environment variables until it is restarted.
According to the putty documentation, you need double quote in case the putty session name contains spaces.
Otherwise, putty is trying to connect to a string from the session name which most probably leads to unexpected results.
I would suggest to always use them in Keepass for the TITLE parameter. If you have different users to connect to your machine, I'd rather add the extra "-l" parameter to the command line in order to provide a user name and make a Keepass entry for every single user.
cmd://"C:\Program Files\PuTTY\putty.exe" -load "{TITLE}" -l {USERNAME} -pw {PASSWORD}
(Of course, you have to adjust the path to putty.exe like already mentioned)
According to the putty documentation, you need double quote in case the putty session name contains spaces.
Otherwise, putty is trying to connect to a string from the session name which most probably leads to unexpected results.
I would suggest to always use them in Keepass for the TITLE parameter. If you have different users to connect to your machine, I'd rather add the extra "-l" parameter to the command line in order to provide a user name and make a Keepass entry for every single user.
cmd://"C:\Program Files\PuTTY\putty.exe" -load "{TITLE}" -l {USERNAME} -pw {PASSWORD}
(Of course, you have to adjust the path to putty.exe like already mentioned)
Sorry for the double posting. These captchas are killing me ;-)
One thing to keep in mind while launching putty with the -pw parameter is that you expose the password in an unsafe matter.
It is possible to read the whole command line for each process (e.g. using Sysinternals Process Explorer) and therefor the password is potentially visible to anyone who has access to the system.
Post a Comment