ssh -  is a program for logging into a remote machine and for executing commands on a remote machine

To access  remote server
$ ssh 192.168.122.50

To specify a username for SSH connection
$ ssh username@hostname_or_ip
$ ssh -l username@hostname_or_ip

To use a different port number for ssh connection
$ ssh my.server.in -p 2222
$ ssh 192.168.122.50 -p 2222

To run a command on a remote server from a local computer
$ ssh 192.168.122.50 rm ~/Desktop/test_file.txt

To execute multiple commands using SSH on remote nodes
$ ssh 192.168.122.50 command1; command2; command3

To make ssh to use protocol version 2

To Print debug information
To increase the level of verbosity
To get more level of verbosity

To enable X11 forwarding with ssh command
$ ssh -X ip_address
$ ssh -X 192.168.122.50

To hide the error message
$ ssh -q 192.168.122.50

To change any default value to other possible values during ssh
$ ssh -o option=value ip_address
$ ssh -o Port=2222 192.168.122.50
 


regards,
T.Dhanasekar