How to use alternate SSH port for DR in place default port 22
book
Article ID: 16544
calendar_today
Updated On: 02-01-2024
Products
CA Performance Management
Network Observability
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:
- Connect to your server via SSH.
- Switch to the root user.
- Run the following command:
vi /etc/ssh/sshd_config
- Locate the following line:
# Port 22
- Remove # and change 22 to your desired port number.
- Restart the sshd service by running the following command:
service sshd restart
- On each DR server:
-
Create ~root/.ssh/config on each box and add:
Host DR1HOSTNAME
Port 16107
Host DR2HOSTNAME
Port 16107
Host DR3HOSTNAME
Port 16107
-
Repeat above step for ~dradmin/.ssh/config for each DR node.
Feedback
Was this article helpful?
thumb_up
Yes
thumb_down
No