Synchronize ssh_connect. Fixes #135