opscode/chef — pull request #1576 by tedlschroeder (2014-06-27 23:16:54+00:00)
Title: Retry on ssh failure in knife/ssh.rb

We were seeing problems where the ssh_command call from the "knife ec2 create server ..." command was timing out regularly between the chef server in Northern California and a new AWS instance in Northern Virginia. To alleviate this I added code that retries the ssh command up to three times before failing.