找不到命令:在您的计算机上找不到 ssh OpenSSH

Command not found: ssh OpenSSH not found on your computer

我正在尝试设置 Ionic pro。但它提供了 error.Any 帮助?

我已经安装了Git Bash。但是,它仍然显示上面的错误。为什么?

May we proceed? Yes

ionic ssh generate C:\Users\lokuge.ssh\ionic60 [ERROR] Command not found: ssh [WARN] OpenSSH not found on your computer. [INFO] You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone has your private key, they can impersonate you!) Passphrases are recommended, but not required. 'ssh-keygen' is not recognized as an internal or external command, operable program or batch file. [ERROR] Command not found: ssh-keygen

简单:安装 SSH

由于您似乎在 Windows,我建议您获得 Git Bash。随 OpenSSH 一起提供。哦,还有 Git,很明显。

编辑,因为解决方法其实在评论里: 您必须从 Git Bash[=19= 附带的实际 Bash 中 运行 Visual Studio 中导致错误的任何命令].简单地安装 Git Bash 但 运行 从 VS 中执行命令 工作,因为 VS 假定使用不同的终端仿真器。

我有同样的问题,我已经通过 cygwin 下载并配置了 ssh 我将使用 Cygwin 来 运行 ionic pro 而不是 cmd,因为虽然我 运行 ionic pro on cmd 我有一个错误:ionic ssh setup [警告] 在您的计算机上找不到 OpenSSH。 [错误] 找不到命令:ssh