Server Management - Systems Insight Manager
1833476 Members
2532 Online
110052 Solutions
New Discussion

Run Openssh on alternate port

 
SOLVED
Go to solution
Dan Stebbins
Advisor

Run Openssh on alternate port

I want to run ssh on a different port than 22. I found the configuration in \ProgFiles\OpenSSH\etc\ssh_config and sshd_config and changed the ports there. I verified with putty that it was working but when I try to deploy openssh to another server I get this error:
EXCEPTION CLASS: com.hp.mx.dtf.sshClient.MxSshFailedConnectionException
EXCEPTION: Unable to contact the SSH server on node "SIMserver".
It looks like the application is still trying to connect on port 22. Where can I change that?
TIA
1 REPLY 1
Joel Rubenstein
Honored Contributor
Solution

Re: Run Openssh on alternate port

Normally, SSH servers listen on TCP port 22. If, for some reason, this needs to be changed, the SSH
port that HP Systems Insight Manager uses is configurable. Note that this only changes the port that
the CMS uses to initiate SSH sessions. Every SSH server on each managed system must be configured
to listen on that port as well. The port is set by setting MX_SSH_PORT in the mx.properties file.
Example: To change the port to 6450, add the following line to mx.properties:
MX_SSH_PORT=6450

more info can be found in the whitepaper.

http://www.hp.com/wwsolutions/misc/hpsim-helpfiles/HPSIM_SSH_WP.pdf