Fix tests in the presence of openssh's ControlMaster setting.

If it is enabled, a number of tests hang.
You're not connecting as root here, but with the username passed to the method a few lines above.