Server connection profiles often outlive the Windows PC on which they were created. PuTTY sessions can be backed up to a .reg settings file so their saved hosts and preferences can be restored after a reinstall or move.

On Windows, PuTTY stores saved sessions in the current user's Registry rather than beside the program. The export must be made under the account that owns those sessions. Registry Editor also permits edits and deletions, but exporting the Sessions branch leaves the existing profiles unchanged.

The exported file is plain text and may contain hostnames, usernames, proxy details, and private-key file paths, so it belongs in protected storage. It does not include the private key files themselves or the cached SSH host keys under SshHostKeys; a restored session may therefore prompt for host-key verification again.

Steps to save PuTTY sessions to a settings file:

  1. Launch Registry Editor with regedit from Run (Win+R).
  2. Click Yes when User Account Control identifies Registry Editor.

    If Windows asks for a different administrator account's credentials, cancel to avoid exporting that account's sessions instead.

  3. Navigate to the Sessions key using the Registry Editor address bar.
    Computer\HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions

  4. Confirm that your saved session names appear beneath Sessions.

    Spaces in session names are encoded in the Registry, such as Example%20SSH for Example SSH. A missing Sessions key or missing session names can indicate a different Windows account.

  5. Choose File → Export with Sessions selected.
  6. Enter putty-sessions.reg in File name for the Documents folder.

    Save in shows the destination folder. If a different backup location is needed, it can be selected there.

  7. Click Save with Selected branch set to the full Sessions path.

    All exports unrelated Registry data as well. Selected branch limits this backup to the saved sessions.

  8. Open Documents in File Explorer.
  9. Choose Edit in Notepad from the exported file's context menu.

    Double-clicking a .reg file opens a Registry import prompt rather than a text preview.

  10. Confirm that Notepad shows the Sessions sections and the expected host settings.
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions]
    
    [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Example%20SSH]
    "HostName"="host.example.net"
    "PortNumber"=dword:00000016
    ##### snipped #####
Share this guide