Enable ssh on your mac

Enable ssh on MAC:

System Preferences -> Sharing.
Click Remote Login
Allow access for All users



To change sshd config:
 # vi /etc/sshd_config

To restart sshd:

# ps aux | grep sshd
# kill -9 <pid>