得到paramiko.ssh_异常.SSHException:由于连接(Python)而读取SSH协议横幅时出错

2024-05-18 11:15:41 发布

您现在位置:Python中文网/ 问答频道 /正文

Python 3.7 织物2.4.0 无法连接远程电脑 使用端口3389(如mstsc),如果我正在尝试另一个端口-获取“无法连接到上的端口”

v = Connection(host=ServName, port=Port, user=User, connect_kwargs={'password': 's3cr3t'})
print(v.is_connected) #get False
v.run('dir') #get error (see img attach below)

Image of the error


Tags: 端口hostget远程portconnectconnectionkwargs