Ssh


From Linuxconfig.org

Jump to: navigation, search

.. back to the list of Linux Commands

Name

ssh - OpenSSH SSH client (remote login program)

Synopsis - man page

ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D
         [bind_address:]port] [-e escape_char] [-F configfile]
         [-i identity_file] [-L  [bind_address:]port:host:hostport]
         [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R
         [bind_address:]port:host:hostport] [-S ctl_path] [-w tunnel:tunnel]
         [user@]hostname [command]

Frequently used options

-l      login_name
-v      Verbose mode.  Causes ssh to print debugging messages about its
        progress.  This is helpful in debugging connection, authentica‐
        tion, and configuration problems.  Multiple -v options increase
        the verbosity.  The maximum is 3.

Examples

ssh to a box with an IP Address 192.168.148.142 and as user root:

ssh -l root 192.168.148.142

or

ssh root@192.168.148.142

Feel free to specify host name instead of IP address. To ssh to linuxconfig.org_remote as a root user we can use:

ssh root@linuxconfig.org_remote

For troubleshooting your ssh service use -vvv option as follows:

ssh -vvv root@linuxconfig.org_remote

.. back to the list of Linux Commands

Personal tools
Linux Commands