Put ssh connection checking method into util.py instead of the ec2 service class