How to use alternate SSH port for DR in place default port 22
search cancel

How to use alternate SSH port for DR in place default port 22

book

Article ID: 16544

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Client may want to use different port for SSH for DR machines.

How to use non standard SSH port to configure passwordless SSH for DR machines?

Environment

All DX NetOps Performance Management releases

Resolution

Follow the below instructions:

  1. Connect to your server via SSH.
  2. Switch to the root user.
  3. Run the following command:
    vi /etc/ssh/sshd_config
  4. Locate the following line:
    # Port 22
  5. Remove # and change 22 to your desired port number.
  6. Restart the sshd service by running the following command:
    service sshd restart
  7. On each DR server:
    1. Create ~root/.ssh/config on each box and add:

      Host DR1HOSTNAME

          Port 16107 

      Host DR2HOSTNAME

         Port 16107 

      Host DR3HOSTNAME

         Port 16107 

    2. Repeat above step for ~dradmin/.ssh/config for each DR node.