How to customize the font and font size for the default PSM-SSH connection component via registry
Objective
In v7.0 and higher, the connection client is run by a Windows user that is mapped to a vault user that is requesting the session. That Windows user is called a shadow user. Each shadow user has its own profile on the PSM server (Computer - Properties - Advanced System Settings - User Profiles - Settings). Customized putty settings must be configured under the default user profile of the PSM server so they can be used when new shadow users connect.
Environment
12.0;12.1;12.2;12.6;13.0;13.2;13.1 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;PSMP;Privileged Session Management (PSM)
Procedure
-
Do the following on the PSM server with Administrative rights and Prepare the default PuTTy Session settings that will be used:
a. Install a standalone PuTTy on PSM or another machine.
b. Launch PuTTy
c. Make the required settings that you desire, for example changing the Window>Appearance>Font settings and clicking on change.
d. Select the Font, Font style, and Font size and click on OK.
e. Click on session again, then select Default Settings and Save.
-
Next, we will import this new setting to the default user profile.
a. Back up the registry of the PSM Server.
b. Open the Microsoft Windows Registry Editor and load a new hive that points to the default user's NTUSER.DAT by selecting HKEY_USERS then in the File menu the option Load Hive. Browse to and open C:\Users\Default\NTUSER.DAT (You may not be able to find NTUSER.DAT in the folder. Simply type into the filename box from C:\Users\Default and select Open.
c. Name the new hive DefaultPuTTy. The name DefaultPuTTy should be used as it refers to a name in the exported reg file done previously.
d. Export Settings: Open the Registry Editor (regedit) and navigate to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings. Right-click on Default%20Settings and select Export. Save the file as DefaultPuTTy.reg.
e. Edit the .reg File: Open DefaultPuTTy.reg with a text editor and modify the path from [HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\Default%20Settings] to [HKEY_USERS\DefaultPuTTy\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]. Save the changes.f. Merge (or run) the attached DefaultPuTTy.reg file that was created as per the instructions above. The simplest way is by double-clicking on the DefaultPuTTy.reg file.
g. You will now see in the DefaultPuTTy hive in RegEdit and new keys in ~/Software/SimonTatham/PuTTY/Default%20Settings.
h. Once you've completed your changes Select the hive name under HKEY_Users then unload it by selecting from the File menu the option Unload Hive. You will see the DefaultPuTTy hive is gone. The changes are applied to the NTUSER.DAT file so new profiles will use the settings.
-
Before testing a new connection, we need to remove the ShadowUsers profiles below paths.
-
Go into Computer - Properties - Advanced System Settings - User Profiles - Settings. Delete all entries with PSM- and followed by numbers. Do not delete PSMConnect and PSMAdminConnect accounts.
a. On regeditor 'HKLM\Software\Microsoft\Windows NT\ProfileList'
b. You will then need to delete the profile stored on disk, i.e. C:\Users\PSM-xxxxxxxxxxxxxx
c. Now we can try the PSM-SSH connection. The new settings will be inherited.