If we have to connect to a remote server using SSH then we can do it using following command. Suppose we have remote server IP as and username as root ssh root@ If we need to specify some port then we can do as under. suppose our port number is 2233 ssh -p 2233