def is_ssh_available(host, port=<NUM_LIT>):
s = socket.socket()<EOL>try:<EOL><INDENT>s.connect((host, port))<EOL>return True<EOL><DEDENT>except:<EOL><INDENT>return False<EOL><DEDENT>
checks if ssh port is open