1 Answer
Connect to the server and switch to root user Run the following command #vim /etc/ssh/sshd_conf
And Search the following Line
#port 22
Remove (#) and replace the port number
And finally, restart the service
#systemctl restart sshd
Your Answer