ssh 命令在 cygwin 中不起作用

Min*_*ngo 11 ssh cygwin

ssh 命令在我之前的 cygwin 中工作得很好。但今天不行。它总是显示一个用法。但我的命令是正确的。

$ 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
Run Code Online (Sandbox Code Playgroud)

cygwin 版本是 1.7

唐斯

小智 8

我遇到了这个问题并且能够通过将我的 openssh 降级到“OpenSSH_5.5p1, OpenSSL 0.9.8o 01 Jun 2010”来解决它

只需打开 cygwin 安装程序并键入 ssh,然后单击版本,直到看到 5.5p1。

  • 亲爱的基督,谢谢你。那是我生命中的一个小时,我永远不会回来。 (3认同)
  • 我有一个完全不同的错误`伪终端不会被分配,因为标准输入不是终端`,我所要做的就是重新安装(甚至不是不同的版本),现在很好......我不明白,但是好吧,ty。 (2认同)

nic*_*ius 4

为了让 Cygwin 使用 ssh,您必须在安装时包含 ssh(网络)。当您进入显示检查要安装或不安装的内容的选项的对话框时,在搜索框中键入“网络”并查找 ssh。您需要选择此选项才能安装它。

您会发现许多基本功能都需要安装它。