Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test Kitchen login command failing

I'm following this getting-started guide for test kitchen and made some initial good progress. However when trying to use kitchen login command mentioned on this page , it fails with 'No such file or directory - ssh' My local system is Windows7, can anyone help please?

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:inlogin' 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:inperform' 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:inrun' 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:ininvoke_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:instart' 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 block 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:inwith_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:inload' from C:/Program Files (x86)/Heroku/ruby-1.9.3/bin/kitchen:23:in `'

like image 968
ss3065 Avatar asked Jan 02 '26 01:01

ss3065


2 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 are able to run the 'ssh' command from a windows command prompt you should be able to run the kitchen login command successfully past the current error you are receiving. The 'kitchen login' command is trying to use ssh to get to the vm but it can't because its not installed/configured on your computer.

like image 153
Antonio De Leon Avatar answered Jan 04 '26 12:01

Antonio De Leon


Or you can log in via vagrant. Use vagrant local-status to get a list of local VMs and their ids. Then run vagrant ssh <id>.

like image 43
John Velonis Avatar answered Jan 04 '26 14:01

John Velonis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!