Change the SSH port between Server and Client
Download the scripts from these links:
https://dl.medulla-tech.io/nc/change_ssh_port_on_agent.py
https://dl.medulla-tech.io/nc/change_ssh_port_on_server.py
chmod +x change_ssh_port_on_agent.py
chmod +x change_ssh_port_on_server.py
To view the script options:
./change_ssh_port_on_agent.py --help
./change_ssh_port_on_server.py --help
You must change the port using both scripts
The port must be the same in both scripts
Change the port on the server
To change port 22 to port 2002, here is an example of how to use the command:
./change_ssh_port_on_agent.py --new-ssh-port 2002
./change_ssh_port_on_server.py --new-ssh-port 2002
The agent will be regenerated after running the "change_ssh_port_on_agent.py" script; you must then redeploy the agent to your workstations.