为 amazon 实例 SSH 到 Ubuntu 时找不到命令

jam*_*mes 5 ssh

当尝试通过 ssh 进入我的 ubuntu 实例时,我收到-bash: ssh: command not found. 我正在尝试连接到 amazonaws 上的一个实例。我在 Windows 7 上运行 cygwin

jmu*_*sch 9

ssh 安装了吗?

sudo apt-get install openssh-client

据说你没有ssh。

更新:

如果在 cygwin (看这里)

cd /to/where/cygwin/is
setup-x86.exe -q -P openssh
Run Code Online (Sandbox Code Playgroud)

或者如果它是 64 位:

cd C:\Cygwin
setup-x86_64.exe -q -P openssh
Run Code Online (Sandbox Code Playgroud)

您可能必须以管理员身份运行它或尝试重新安装 cygwin 并确保选中了小 ssh 框。