PSM-SSH connection timeout after PAS is upgraded to 9.10 or above

PSM-SSH connection timeout after PAS is upgraded to 9.10 or above

123
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 13:00 PM


Symptom


PSM-SSH has been working on PAS 9.7 or below however the connection process  times out after PAS is upgraded to 9.10 or above 

Running Putty on PSM server to the target system,  a warning message  pops  up before connection is established:

"The first key-exchange algorithm supported by the server is diffie-hellman-group1-sha1,which is below configured warning threshold. Do you want to continue this connection"



Environment


9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6 PAS

Cause


From version 0.68 and above , Putty warns if the diffie-hellman-group1-sha1 key exchange method is negotiated as it's no longer considered safe enough (see https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/deprecate-dh-group1.html). 

In PSM Version 9.7 we are using Putty version 0.67. 
From PSM Version 9.10 we are using Putty version 0.69 or above.

Therefore if diffie-hellman-group1-sha1  key exchange method is enabled in the target device, it is  by design behavior to show the warning message. The warning message pop up window may cause PSM connection time out as  the out of box connection process doesn't include a step to handle this warning message window.



Resolution


You can solve the issue by one of the following :

1) Change the default key exchange algorithm in your device to something more secure & that is supported in putty by default (for example
diffie-hellman-group14-sha1. For a full list of algorithms, see section 4.19.1 in https://the.earth.li/~sgtatham/putty/0.68/puttydoc.txt) . This is the recommended and suggested solution to keep your connections as safe as possible .
2) Change the default settings of Putty to make the diffie-hellman-group1-sha1 above the warning threshold and avoid this warning message (but be aware that you will still use a negotiation method that is no longer recommended by Putty).

  • 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. 
  • Copy the attached TEST.reg.txt file to the PSM server, renaming it to TEST.reg. 
  • Back up the registry of the PSM Server. 
  • 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. (Type in NTUser.dat if not visible)
    Note: C:\Users\Default is a hidden directory, you may need to change the folder options to see hidden files and folder and show protected OS files. 
  • Name the new hive TEST. The name TEST should be used as it is referring to a name in the provided reg file. 
  • Merge (or run) the attached TEST.reg file from this solution. The simplest way is by double clicking on the TEST.reg file.
    (If you named your hive something other than TEST update the registry location name in this file to match) 
  • You will now see in the TEST hive in RegEdit and new keys in HKEY_USERS/Software/SimonTatham/PuTTY/Default%20Settings. Here you can make additional changes to the Putty settings. 
  • 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 TEMP hive is gone. The changes are applied to the NTUSER.DAT file so new profiles will use the settings. 
  • Try the SSH connection. The new settings would be inherited


Additional Information


Details

SYMPTOM:

 
PSM-SSH has been working on PAS 9.7 or below however the connection process  times out after PAS is upgraded to 9.10 or above
 

Running Putty on PSM server to the target system,  a warning message  pops  up before connection is established:

 

"The first key-exchange algorithm supported by the server is diffie-hellman-group1-sha1,which is below configured warning threshold. Do you want to continue this connection"


PROBLEM: 

From version 0.68 and above , Putty warns if the diffie-hellman-group1-sha1 key exchange method is negotiated as it's no longer considered safe enough (see https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/deprecate-dh-group1.html). 

 

In PSM Version 9.7 we are using Putty version 0.67. 
From PSM Version 9.10 we are using Putty version 0.69 or above.

 

Therefore if diffie-hellman-group1-sha1  key exchange method is enabled in the target device, it is  by design behavior to show the warning message. The warning message pop up window may cause PSM connection time out as  the out of box connection process doesn't include a step to handle this warning message window.

 

SOLUTION:

 

You can solve the issue by one of the following :

1) Change the default key exchange algorithm in your device to something more secure & that is supported in putty by default (for example
diffie-hellman-group14-sha1. For a full list of algorithms, see section 4.19.1 in https://the.earth.li/~sgtatham/putty/0.68/puttydoc.txt) . This is the recommended and suggested solution to keep your connections as safe as possible .
2) Change the default settings of Putty to make the diffie-hellman-group1-sha1 above the warning threshold and avoid this warning message (but be aware that you will still use a negotiation method that is no longer recommended by Putty).

  • 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. 
  • Copy the attached TEST.reg.txt file to the PSM server, renaming it to TEST.reg. 
  • Back up the registry of the PSM Server. 
  • 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. (Type in NTUser.dat if not visible)
    Note: C:\Users\Default is a hidden directory, you may need to change the folder options to see hidden files and folder and show protected OS files. 
  • Name the new hive TEST. The name TEST should be used as it is referring to a name in the provided reg file. 
  • Merge (or run) the attached TEST.reg file from this solution. The simplest way is by double clicking on the TEST.reg file.
    (If you named your hive something other than TEST update the registry location name in this file to match) 
  • You will now see in the TEST hive in RegEdit and new keys in HKEY_USERS/Software/SimonTatham/PuTTY/Default%20Settings. Here you can make additional changes to the Putty settings. 
  • 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 TEMP hive is gone. The changes are applied to the NTUSER.DAT file so new profiles will use the settings. 
  • Try the SSH connection. The new settings would be inherited



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001UaLCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail