1 Answer
In the SSH Config File , Locate the line # Port 22
,add the port number that you would want to connect by commenting on the default port(22) and save the configuration file.
vim /etc/ssh/sshd_config
Port 8989
Restart the service of SSHsystemctl restart sshd
To Connect using the new port.ssh-p 8989 root@<IP>
Your Answer