diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index ed5af22d7..ffb741851 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -119,6 +119,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) { for { dummy, err := c.config.Connection() if err == nil { + failures = 0 dummy.Close() }