{"id":429,"date":"2012-08-17T00:45:43","date_gmt":"2012-08-17T00:45:43","guid":{"rendered":"http:\/\/garysieling.com\/blog\/?p=429"},"modified":"2012-08-17T00:45:43","modified_gmt":"2012-08-17T00:45:43","slug":"vagrant-the-following-ssh-command-responded-with-a-non-zero-exit-status","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/vagrant-the-following-ssh-command-responded-with-a-non-zero-exit-status\/","title":{"rendered":"Vagrant: &#8220;The following SSH command responded with a non-zero exit status. &#8220;"},"content":{"rendered":"<p>Vagrant up often returns the following error running Chef scripts:<\/p>\n<pre>The following SSH command responded with a non-zero exit status.\nVagrant assumes that this means the command failed!\n\nmount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 \/tmp\/vagrant-chef-1\/chef-solo-1\/cookbooks<\/pre>\n<p>You can troubleshoot this by logging into the running server, then running the command (the password is usually vagrant):<\/p>\n<pre>\nssh vagrant@localhost -p 2222 \n<\/pre>\n<p>Often this failure is an indication that Vagrantfile points to an invalid path on the host machine (not the virtualized environment). This can be verified by running the above command, but change the mount point, like so:<\/p>\n<pre>\nmount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 \/tmp\/vagrant-chef-1\/chef-solo-2\/cookbooks<\/pre>\n<p>If this returns &#8220;Protocol error&#8221;, it is likely a bad path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vagrant up often returns the following error running Chef scripts: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 \/tmp\/vagrant-chef-1\/chef-solo-1\/cookbooks You can troubleshoot this by logging into the running server, then running the command (the password &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/vagrant-the-following-ssh-command-responded-with-a-non-zero-exit-status\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Vagrant: &#8220;The following SSH command responded with a non-zero exit status. &#8220;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[32],"tags":[106,107,566,571],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/429"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}