rhc ssh [没有系统SSH可用]错误 [英] rhc ssh [No system SSH available] error
问题描述
我想在我的cmd中查看我的openshift应用程序日志。
我尝试过:
rhc ssh appname
获得:
没有系统SSH可用。请使用--ssh选项指定SSH可执行文件的路径,或者安装SSH。
我的系统已经有了ssh key.so我该如何解决这个问题?
您需要确保: 一个cmd会话,其中 在 HOME
是define(键入 set HOME
来检查它的值:它必须是 C:\ Users \ YourLogin
,因为ssh需要在%HOME%\.ssh
中查找键)
%PATH%
中引用了您的 ssh.exe
父文件夹,或者你可以输入:
rhc ssh -sshc:\prgs\git\PortableGit-2.8.3- 64位\\\\\\\\-a appname
用Git for Windows的实际安装路径替换 c:\prgs\git\PortableGit-2.8.3-64-bit
。
最简单的解决方案是添加 git \usr\bin
文件夹(其中包括 ssh.exe
)添加到 PATH
环境变量。
I want view my openshift application log in my cmd.
I did try :
rhc ssh appname
that time i am getting:
No system SSH available. Please use the --ssh option to specify the path to your SSH executable, or install SSH.
My system have already ssh key.so how can i solve that problem?
You need to make sure:
- you are in a cmd session where
HOME
is define (typeset HOME
to check its value: it must beC:\Users\yourLogin
, because ssh needs to look for keys in%HOME%\.ssh
) your
ssh.exe
parent folder is referenced in the%PATH%
, or you can type:rhc ssh -ssh "c:\prgs\git\PortableGit-2.8.3-64-bit\usr\bin\" -a appname
Replace c:\prgs\git\PortableGit-2.8.3-64-bit
with the actual installation path of your Git for Windows.
The easiest solution is to add the git\usr\bin
folder (which includes ssh.exe
) to the PATH
environment variable.
这篇关于rhc ssh [没有系统SSH可用]错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!