Putty Auto Login Via Command Line

Patrick Lewis · March 14, 2012

So lets say you want to open a new PuTTY session to a certain IP Address and have it automatically enter your username for you.

C:\putty.exe username@

Now lets do the same thing but with a password too.

C:\putty.exe username@ -pw password

The two above are fine if you don’t need to use any of the provided settings you get from within PuTTY (e.g. Tunnels, Proxy’s, Color Schemes etc) but if you’re like me and you need to use Tunnels to tunnel into a server using a number of ports then the simplest way to do is this to create a new PuTTY session and then use the following parameters.

C:\putty.exe -load “Session Name” -l username -pw password

Twitter, Facebook