utils.rb: check sshpass exitstatus once in ssh method