下面是我的代码,执行相同的代码后出现错误
paramiko.ssh_exception.SSHException:频道已关闭。
代码:-
p = paramiko.SSHClient()
p.set_missing_host_key_policy(paramiko.AutoAddPolicy())
p.connect("10.236.x.x", port = 22, username = "myusername", password = "abcd1234")
stdin, stdout, stderr = p.exec_command("who")