How to change listening port of PSMP server

How to change listening port of PSMP server

111
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:08 PM


Objective


This article explain how to change PSMP server listening port from 22 to different port.

Environment


12.2;12.6 Privileged Access Manager (PAM, self-hosted) PSMP

Procedure


The answer or the steps taken to resolve the issue.

Assuming you want the PSMP server to listen only on port 2222 and not 22. This can be done by updating the port PSMP is listening on through the sshd_config file.

1. Stop the PSMP Service

service psmpsvr stop

2. update sshd_config with new port.

vi /etc/ssh/sshd_config

- Locate the following line:

# Port 22

- Remove # and change 22 to 2222
- Save it with ":wq!"

3. Restart the sshd service by running the following command:

service sshd restart
or
systemctl restart sshd

4. Start the PSMP Service

service psmpsvr start
 

* You can then set the users local ssh client to use port 2222 on the initial connection from the local clients to the PSMP server.

* You would need to make sure routing is enabled to allow traffic to be passed on this port such as firewall.
firewall-cmd --permanent --add-port=2222/tcp
firewall-cmd --reload
 

** If you want to keep both 22 and 2222 you would remove the # from Port 22 and add additional line under this for port 2222:

Port 22
Port 2222

Before making any changes, it would be good practice to take a snapshot which can be reverted if needed.



Actions
  • Print
  • Copy Link

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