10
2
the ssh command is work perfect in my cygwin before. but today it is not work. It always show a usgage. but my command is correct.
$ ssh root@10.0.0.1
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]]
[user@]hostname [command]
$ ssh -V
OpenSSH_5.6p1, OpenSSL 0.9.8o 01 Jun 2010
cygwin version is 1.7
Thants
Did you try reinstalling? – digitxp – 2010-09-09T00:10:30.477
1What has changed in your system between "before" and "today"? – garyjohn – 2010-09-09T01:10:56.540
1Do you have an alias or function called
ssh
? Check with the commandtype ssh
. – Gilles 'SO- stop being evil' – 2010-09-09T07:07:25.380@digitxp . yes, i uninstall the openssh and restart windowXP, and then intall openssh. but type ssh root@10.0.0.1, it show me a usage. – Mingo – 2010-09-09T22:45:56.827
@garyjohn, the change is, I install the screen package. before that, ssh client work fine. and now i already unintall the screen package, ssh still not work. – Mingo – 2010-09-09T22:47:44.690
@Gilles, NO. not any alias of ssh. – Mingo – 2010-09-09T22:48:55.793
I can't find or think of an argument to
ssh
that looks like a host name but gives a usage error instead of an invalid host name error. You might try to verify yourssh
installation with one or more of the following commands:cygcheck -c openssh
,cygcheck /usr/bin/ssh
,cygcheck -v /usr/bin/ssh
,ldd /usr/bin/ssh
. Maybe thescreen
installation corrupted one of your libraries. – garyjohn – 2010-09-09T23:45:42.083