VanDyke Software

Scripting Examples


Import PuTTY Connections into SecureCRT Saved Sessions

For standard PuTTY configurations, the script attempts to automatically export existing PuTTY configuration settings to a .reg file in your user account's "temporary" folder. If this automated attempt fails, PuTTY session information will need to manually be exported to a .reg file, as in running the following command within a CMD.exe shell window:

REG EXPORT HKCU\Software\SimonTatham\PuTTY\Sessions %USERPROFILE%\Documents\ptty.reg

The exported PuTTY registry file is then parsed and SecureCRT sessions are created from supported configuration settings.

For the other PuTTY implementation variants, the script imports configurations from the corresponding XML file created/exported by Super PuTTY, PuTTY CM, and MPuTTY.

To ensure that any pre-existing sessions of the same name are not overwritten, imported sessions are stored in SecureCRT's Session Manager within a new folder named:


A log file of the import operation is written to the Desktop folder for easy review.

How do you run the script?

  1. Download the script file below that corresponds to your PuTTY variant.
  2. Open SecureCRT and choose Script > Run...
  3. When the Select Script to Run window appears, browse to the location of the file you downloaded; select it, and then press the Run button.

Example Scripts

Import PuTTY Connections into SecureCRT Saved Sessions
Imports session name, hostname, port, username, protocol, emulation, and tunnels (port forward settings).
ImportPuttyDatabaseIntoSecureCRTSessions.vbs.txt (32.8 KB)

Import from KiTTY config(registry)
Imports the same info as with PuTTY, but also supports "Folders".
ImportKittyDatabaseIntoSecureCRTSessions.vbs.txt (33.4 KB)

Import from PuTTY CM (Connection Manager) config XML file
Imports session name/path, hostname, username, and port.
ImportPuttyConnectionManagerInfoIntoSecureCRTSessions.vbs.txt (11.5 KB)

Import from MPuTTY's XML config file. Imports session name/path, hostname, protocol, and port
ImportMPuttyXMLConfigToSecureCRTSessions.vbs.txt (17.1 KB)

Import from Super PuTTY's XML config file
Imports session name/path, hostname, protocol, and port.
ImportSuperPuttyDBIntoSecureCRTSessions.vbs.txt (9.9 KB)

VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.