My code:
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname=remote_host, username=remote_user, password=remote_password, port=remote_port)
As I understand, if there are no exception: successfully connected. So how to check internet connection on remote host?