如何在python中使用paramiko或sshtunnel检查Internet连接在远程主机上?

问题描述

我的代码

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)

据我了解,如果没有例外:成功连接。那么如何检查远程主机上的Internet连接?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)