Using something other than the default Port 22 for the ssh server can help avoid attacks by script kiddies. To do so, run command to edit the ssh config file:
mahesh@mknsoft.com ~
[09:41:40]⌘ vim /etc/ssh/sshd_config
Find out Port 22, change to Port 22222 or any other number between 1024 and 65536.
After this step, you can do SSH access by running below command: