How to Export and Import PuTTy Sessions List

 Thank to: https://stackoverflow.com/

Method 1:

PuTTY – PuTTY is a terminal emulation application which helps connecting to your networking devices via different networking protocols for example: telnet, SSH, Rlogin etc. You can use PuTTY to connect networking devices via serial port too. PuTTY saves the session information in Windows registry. We are going to discuss how to transfer PuTTY sessions from one PC to another in this post.

The picture below shows the saved PuTTY sessions ( Firewall 1, Switch 1, Switch 2, Switch3, Switch 4)



TRANSFER PuTTY SESSIONS FROM ONE PC TO ANOTHER

EXPORT PuTTY SESSIONS

  1. Launch the registry
    START —> RUN —> type REGEDIT.EXE

  2. Browse the below registry location:
    “Computer\HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions”

  3. Right click on Sessions and select Export

  4. Assign a filename and save it

IMPORT SAVED PUTTY SESSIONS TO ANOTHER PC

  1. Transfer\move the saved “putty sessions.reg” file to the desired Windows machine. Double click on the file and you will find below message. Hit YES to accept the message.

  2. Finally, another message will appear and hit OK

After following the above procedure you will find the same sessions on the new computer as well.

Method 2:

Export

cmd.exerequire elevated prompt:

Only sessions:

regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions

All settings:

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham

Powershell:

Only sessions:

reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath("Desktop") + "\putty-sessions.reg")

All settings:

reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath("Desktop") + "\putty.reg")

Import

Double-click on the *.reg file and accept the import.

Alternative ways:

cmd.exerequire elevated command prompt:

regedit /i putty-sessions.reg
regedit /i putty.reg

PowerShell:

reg import putty-sessions.reg
reg import putty.reg

Notedo not replace SimonTatham with your username.

Note: It will create a reg file on the Desktop of the current user.

Note: It will not export related SSH keys.

Comentarios

Publicar un comentario

Dime si la información de este blog te sirvio.

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

Policy Based Routing example: route one subnet via ISP A and another via ISP B