How to login to remote machine through 'ssh' command?

 

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

     Format: ssh [-l login_name ] hostname [command]

     Eg1: ssh –l root 192.168.1.2

     Here the current working machine login to remote machine which has the

     ip192.168.1.2 and with the username root.

     Eg2: ssh –l root 192.168.1.3 –X

     Here it allows you to run the graphical mode too in the remote computer 192.168.1.3 which is logged in with username root.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...

Powered by WHMCompleteSolution