Automatically waits for an SSH connection to become available before connecting.