fix bug in ssh connection test