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:
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: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 includesssh.exe
) to thePATH
environment variable.You may want to first got to Openshift Web Console >> Settings and delete the exiting keys. Then run
rhc setup
in command line. Then tryrhc ssh -a yourApp --ssh C:\PROGRA~1\Git\usr\bin\ssh.exe
. This is what worked for me so am sharing this answer. Hope this helps. Good Luck.If you installed Git for Windows1, then you can try something similar to:
rhc ssh --ssh C:\PROGRA~1\Git\usr\bin\ssh.exe -a <appname>
e.g.
Notes
If you are not interested in adding your git path to
PATH
you will need to use a 8.3 style path because rhc can't seem to handle spaces in the path.rhc ssh myapp --ssh C:\Progra~2\Git\usr\bin\ssh.exe
rhc ssh myapp --ssh "C:\Progra~1\Git\usr\bin\ssh.exe
If you leave the spaces like
C:\Users\me>rhc ssh myapp --ssh "C:\Program Files (x86)\Git\usr\bin\ssh.exe"
You will get the following error:
Install 'SSH' client like Cygwin.
A very interesting Tutorial is->>> nawab-how-to-install-ssh