Rhc ssh [Missing system ssh] error

I want to view my insert application log in my cmd. I tried:
rhc ssh appname

what i get:

 No system SSH available. Please use the --ssh option to specify the path to your SSH executable, or install SSH. 

My system already has ssh key.so, how can I solve this problem?

+5
source share
5 answers

You need to make sure:

  • you are in a cmd session where HOME is defined (type set HOME to check its value: it should be C:\Users\yourLogin , because ssh needs to look for keys in %HOME%\.ssh )
  • Your ssh.exe parent folder is listed in %PATH% , or you can enter:

     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 actual installation of your Git for Windows.

The simplest solution is to add the git\usr\bin (which includes ssh.exe ) to the PATH environment variable.

+6
source

If you installed Git for Windows 1 you can try something similar to:

rhc ssh --ssh C:\PROGRA~1\Git\usr\bin\ssh.exe -a <appname>

eg.

  rhc ssh --ssh C: \ PROGRA ~ 1 \ Git \ usr \ bin \ ssh.exe -a myawesomeapp 

Notes

+11
source

If you are not interested in adding the git path to PATH , you will need to use the 8.3 style path because rhc cannot handle spaces in the path.

  • For x86 versions of git, use rhc ssh myapp --ssh C:\Progra~2\Git\usr\bin\ssh.exe
  • For x64 versions of git, use rhc ssh myapp --ssh "C:\Progra~1\Git\usr\bin\ssh.exe

If you leave spaces, for example C:\Users\me>rhc ssh myapp --ssh "C:\Program Files (x86)\Git\usr\bin\ssh.exe"

You will get the following error:

 RSA 1024 bit CA certificates are loaded due to old openssl compatibility Connecting to my0apps0guid@myapp-me.rhcloud.com ... C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands/ssh.rb:49:in 'exec': No such file or directory - C:\Prog ram (Errno::ENOENT) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands/ssh.rb:49:in 'run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands.rb:294:in 'execute' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/commands.rb:285:in 'block (3 levels) in to_commander' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:180:in 'call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:180:in 'call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/command.rb:155:in 'run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/runner.rb:421:in 'run_active_command' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in 'run!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.2.1/lib/commander/delegates.rb:12:in 'run!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/lib/rhc/cli.rb:37:in 'start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.38.4/bin/rhc:20:in '<top (required)>' from C:/Ruby193/bin/rhc:23:in 'load' from C:/Ruby193/bin/rhc:23:in '<main>' 
+2
source

Install an SSH client such as Cygwin.

A very interesting tutorial → → nawab-how-to-install-ssh

0
source

You can first go to the Open web console → Settings and delete the current keys . Then run rhc setup at the command prompt. Then try rhc ssh -a yourApp --ssh C:\PROGRA~1\Git\usr\bin\ssh.exe . This is what worked for me, so I share this answer. Hope this helps. Good luck.

0
source

Source: https://habr.com/ru/post/1207716/


All Articles