change the default port that OpenSSH server uses
OpenSSH by default listens to port 22 of all local addresses. To provide additional
security to the OpenSSH server, the ListenAdress and Port
directives in /etc/ssh/sshd_config file can be used.
ListenAddress – List the ip address or hosts that sshd will listen on.
Port – Specifies the port that sshd will listen to.
Example /etc/ssh/sshd_config file:
Restart sshd daemon in the OpenSSH server for the changes to take effect.
Now the command below can be used to connect a client from serverip network to the OpenSSH server: