Home > Computers, Technology > Export Putty Settings With a Single Command

Export Putty Settings With a Single Command

There are many ways to export your saved settings from PuTTY.  PuTTY stores its settings in your system register so in the end all the methods export the registry settings to a file that can later be imported to restore the settings.  The quickest way to do this to run the following command in the Start | Run box (all one line):

regedit /e “%userprofile%\desktop\putty.reg” HKEY_CURRENT_USER\Software\Simontatham

Thats it.  That is all there is to it.  On your desktop you now have a file named “putty.reg” that you can copy to another machine or save as a backup for your PuTTY settings.  To restore your settings just double click on the file.

Categories: Computers, Technology
  1. June 2, 2010 at 2:35 pm

    Thanks for sharing! Unfortunately the command line tool doesn’t work in Vista 64 bit. The data is still there, and simple to export though. The path on my Vista machine ended up being:


    I’d recommend just using the find utility and searching for SimonTatham 🙂

  2. Ed
    September 23, 2010 at 9:19 am

    Fantastic. Very nice indeed.

  3. May 26, 2011 at 10:41 pm

    Excellent tutorial. Between my laptop, my desktop at home and my desktop at work I need these to all stay the same. This definitely helped and worked! Thanks!

  4. November 9, 2011 at 7:04 am

    Excellent method, thanks!

    (although as usual the quotes need to be replaced with “regular” ones)

  5. James
    February 1, 2012 at 10:29 am

    If you have Unix tools available, you can easily create a simple html list as well. Open putty.reg with Notepad, resave it as plain text (UTF-8) & then do:

    egrep -i ‘sessions\\|HostName’ putty.txt |\
    sed -e ‘s/^.*Sessions.\(.*\)]/\1/’ -e ‘s/”HostName”=”\(.*\)”/\1/’ | \
    while read foo
    if [ -z “$host” ]
    echo “$host
    done | \
    sed -e ‘s/%20/ /g’ > hosts.html

    There is a simple registry hack out there (http://www.nilpo.com/2007/08/windows-xp/creating-a-custom-url-protocol-for-ssh/) that makes “ssh://” URLs useful.

  6. Anonymous
    April 9, 2012 at 6:18 am

    regedit is not exactly a command-line tool.

    An alternative way would be:
    reg export HKCU\Software\Simontatham regexp.reg

  7. O
    January 10, 2013 at 4:27 am

    Best it’s for windows faster

    reg export HKCU\Software\Simontatham regexp.reg

  8. Johnf415
    April 28, 2014 at 5:49 am

    I’m really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing, its rare to see a great blog like this one these days.. eeccgaedeade

  9. Johne449
    April 28, 2014 at 5:50 am

    In My Bambino site you can find sso many interesting aspefts fdccafbacgde

  10. Disappointed
    March 16, 2017 at 8:57 am

    What kind of rubbish is this?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: