Test login command error

I've been following this startup guide for testing a kitchen and have done some initial good progress. However, when trying to use the login command listed on this page , it fails with "No such file or directory - ssh", My local system is Windows7, can anyone help?

C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:220: in exec': No such file or directory - ssh (Errno::ENOENT ) from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:220:in

login ' from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/command/login.rb:39: in call' from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/cli.rb:56:in

execute 'from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/cli.rb:224 : in login' from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in

run "from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126: in invoke_command' from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/cli.rb:308:in

invoke_task "from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in

start ' from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/bin/kitchen:13:inblock in <top (required)>' from C:/Program Files (x86)/Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/lib/kitchen/errors.rb:154:in

with_friendly_errors 'from C: / Program Files (x86) /Heroku/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/test-kitchen-1.4.0/bin/kitchen:13:in <top (required)>' from C:/Program Files (x86)/Heroku/ruby-1.9.3/bin/kitchen:23:in

download' from C: / Program Files (x86) /Heroku/ruby-1.9.3/bin/kitchen:23:in `'

+3


source to share


3 answers


You need to install Cygwin and SSH. http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/ . Once you can run the "ssh" command from the windows command prompt, you should be able to successfully run the kitchen login command behind the last error you are getting. The Login command tries to use ssh to access the vm but cannot because it is not installed / configured on your machine.



+2


source


Or you can enter through a vagrant. Use vagrant local-status

to get a list of local virtual machines and their IDs. Then run vagrant ssh <id>

.



+1


source


On Windows, ChefDK comes with Git for Windows, which includes its own version of ssh.

If you have this problem on Windows and have ChefDK installed, make sure you have the following in your System PATH: (Actual location may be different if you installed ChefDK elsewhere):

C:\opscode\chefdk\embedded\git\usr\bin

      

0


source







All Articles