cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

how do i make ssh_tunnel connection timeout longer? #67

Closed hanzhefeng closed 8 years ago

hanzhefeng commented 8 years ago

my CPI injects the public key to vm instance very slow. the bosh deploy ssh_tunnel connection always gets timeout before the public key been injected.

is there anyway i can control the timeout value for both "ConnectionRefusedTimeout" and "AuthFailureTimeout" in file /bosh-init/bosh-init-master/deployment/sshtunnel/ssh_tunnel.go?

Thanks!

cppforlife commented 8 years ago

Feel free to file a PR that adds custom options to bosh-init under cloud_provider e.g.

cloud_provider:
  ssh_tunnel:
    connection_refused_timeout: x
    auth_failure_timeout: x