Open a SSH session with Putty and Keepass

This post will show you how to open a ssh session by launching Putty from Keepass with your credentials saved in Keepass.

  • putty and keepassOpen keepass and create a new entry. In the title, put your server domain or ip.
  • make sure putty is in your Windows PATH so it can be launch from the command line. (if not you should be able to put the absolute path to putty in the command line above)
  • put the other credentials informations on your new Keepass entry
  • In the URL field, put this :
cmd://putty -load "Default Settings" {TITLE} -l {USERNAME} -pw {PASSWORD}
  • click Ok to save.
  • Then, you can open your ssh session by pressing Ctrl+U or by right clicking on your new entry and by cliking on URL(s) > Open

on this command line, you can see that we are loading the “Default Settings”. You can change the default settings from Putty. You can also load other settings by changing the name in the given command line.

10 thoughts on “Open a SSH session with Putty and Keepass

  1. Johannes

    Yeah, this works exactly as you described it. Thanks a lot! Until now I used KiTTY to store my passwords for ssh sessions and KeePass for the rest. Now I can use KeePass for all of my passwords.

  2. Andreas

    Thanks, but it will expose you passwords in clear text on the command line. I simply leave out -pw {PASSWORD} and only run the command

    cmd://putty -load “Default Settings” {TITLE} -l {USERNAME}
    and then use the the auto -type with this sequence


  3. Pingback: KeePass Passwort-Speicher Einführung |

  4. Pingback: KeePass | This is new !!

  5. Tom

    Works great! After I changed the PATH, I tried what you said to do and it failed. I closed keypass and started it up again and it worked perfectly. Thanks a lot!


Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>