SSH - How to made an Ssh connection in a shell (for instance from Cygwin, CygwinX) ?


How to made an SSH connection to a Linux Operating system with a shell from a term, xterm of Cygwin, CygwinX ?


From Cygwin

Install the ssh component of Cygwin start the console and use this syntax:

[email protected] ~
$ ssh
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-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 host:port] [-w local_tun[:remote_tun]]
           [[email protected]]hostname [command]

[email protected] ~
$ ssh -l root
The authenticity of host ' (' can''t be established.
RSA key fingerprint is fd:5f:9e:94:0e:6a:b2:a4:40:f9:0d:7d:24:d2:80:8b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (RSA) to the list of known hosts.
[email protected] password:
Last login: Sat Mar 13 22:49:17 2010 from
[[email protected] ~]#

From the Xterm

From the Xterm of CygwinX

$ ssh -Y [email protected]
[email protected]''s password: 
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Sat May 22 18:38:07 2010 from
/usr/bin/xauth:  creating new authority file /root/.Xauthority

Powered by ComboStrap