chef-boneyard / chef-provisioning-ssh

Provision Machines Via SSH or WinRM Using Chef Provisioning
MIT License
15 stars 12 forks source link

I can SSH from my desktop but chef-provisioning-ssh times out #19

Open amirshadaab opened 9 years ago

amirshadaab commented 9 years ago
  require 'chef/provisioning'
  require 'chef/provisioning/ssh_driver'
  with_driver 'ssh'
  machine "ssh" do

    attribute "short_dns", new_resource.short_dns
    attribute "long_dns", load_balancer_name
    recipe "mycookbook::add_short_dns"
    machine_options :transport_options => {
      'is_windows' => false,
      'ip_address' => '10.16.99.124',
      'username' => 'myusername',
      'ssh_options' => {
      'password' => 'mypassword'
      }
    }
    converge true

  end

here is the error

- been waiting 110/120 -- sleeping 10 seconds for ssh (10.16.99.124 on ssh:C:/Users/user/.chef/provisioning/ssh) to be connectable ...[2015-06-23T14:54:33-05:00] INFO: Executing sudo pwd on myusername@10.16.99.124

================================================================================
Error executing action `converge` on resource 'machine[ssh]'
================================================================================

RuntimeError
------------
Machine ssh (10.16.99.124 on ssh:C:/Users/user/.chef/provisioning/ssh) did not become ready within 120 seconds
double-z commented 9 years ago

Hey amirshadaab,

Which machine here is the the windows box... the source or the target?

amirshadaab commented 9 years ago

The source macine

medyagh commented 9 years ago

I have the same issue, I can ssh from my desktop to the node I want to provision but chef-provisioning-ssh times out

    Machine pentaho_dev_ssh (test.medyagh.com on ssh:C:/Users/mghaziza/.chef/provisioning/ssh) did not become ready within 120 seconds
vadimq commented 9 years ago

Try disabling sudo password prompts (they may be the cause).