ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to Configure a Custom SSH port using the Putty Login Application


Article ID: 20804


Updated On:


CA Virtual Privilege Manager CA Privileged Identity Management Endpoint (PIM) CA Privileged Access Manager (PAM)



By default using the PUTTY.vbs as the login application uses port 22. This is the default SSH port. This document describes what needs to be modified in order to use a custom port.


In order to use a custom port with the Putty.vbs script the following file needs to be modified:


There are two lines what start with "DIM" After these two lines there is the following line:

Set pupmObj = CreateObject("ACLauncher.ACWebLauncher") 

ADD the following line after the line above:

pupmObj.SetPUTTYOption "PortNumber", "REG_DWORD", "<Your_custom_port_number>" 

This should result in the following sequence of lines:

Set pupmObj = CreateObject("ACLauncher.ACWebLauncher") 
pupmObj.SetPUTTYOption "PortNumber", "REG_DWORD", "<Your_custom_port_number>" 
hwnd = pupmObj.LaunchePUTTY("#host#","#userName#", "#password#") 

Save the file

Note: the "PortNumber" name comes from the registry values in Putty. An example path to PUTTY settings:



Component: SEOSPP