Fix bugs in net-ssh connector