How to login SSH, Change SSH Port on Mac OS X

This post describes how to connect a Mac OS X using SSH Protocol. The SSH used to directly connect in Linux system, in order to access from a command line, set permissions, copy files, make changes.

SSH Login:

Simple syntax to use ssh login,

ssh -p port_number username@ip_address

Mac default ssh port number is 22. So, just run the below command on Terminal windows

$ ssh -p 22 thelinuxfaq@192.168.1.128

The authenticity of host '192.168.1.128 (192.168.1.128)' can't be established.
RSA key fingerprint is a3:4d:54:03:dd:f6:c3:4f:20:eb:e4:ce:b1:8d:ce:4d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.128' (RSA) to the list of known hosts.
Password:

Like to see who is logged into your system and what they are doing use command "w" which means who.