adds spec for #transfer
changes how to wait for ssh connected
changes ssh closing connection