【多选题】
A import paramiko;client=paramiko.client.SSHClient();client.connect(hostname=‘192.168.1.1’,username=huawei,filename=id_rsa)
B import paramiko;client=paramiko.client.SSHClient();client.connect(hostname=192.168.1.1,username=huawei,pkey=id_rsa)
C import paramiko;client=paramiko.Transport((192.168.1.1,22));client.connect(username=huawei,key_filename=id_rsa)
D import paramiko;key=paramiko.RSAKey.from_private_key_file(id_rsa);client=paramiko.Transport((192.168.1.1,22));client.connect(username=huawei,pkey=key)
查看更多