a php developer weblog

blog Closed!
calin view of the web development world

2005/9/23

putty authentication alternative

@ 09:07 AM (34 months, 16 days ago)
Since regular putty authentication tunneling is sometimes pretty complex, there is a simpler way to achieve automatic session login. Normally one has to generate a *.ppk key via puttygen, then upload this key file to the server, configure authentication to "read" this file, then attach this ppk key to the session, then not use any passphrase so that you get logged in automatically or load pageant all the time. More details on this way of authentication here.

There is however a simpler approach, by using the standard putty command line options. One has to simply create a desktop shortcut to putty, and add a few parameters to the putty.exe program. The desktop shortcut looks like this:

  \\putty.exe -load "session name" -l user name -pw password

This solution is not that secure as regular authentication, since the password is present in clear, but it's far simpler. Thanks to NuMessiah for the tip.