remove duplicate coe

This commit is contained in:
ssamson-tis
2016-04-14 14:32:04 +02:00
parent f624d28f28
commit 0e3892b755
2 changed files with 2 additions and 15 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ def ssh_exec(command,ssh=None,server_name='',remote_user='',private_key='',ssh_p
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(server_name,username=remote_user,pkey = private_key,port=ssh_port)
ssh.connect(server_name,username=remote_user,pkey = mykey,port=ssh_port)
tran = ssh.get_transport()
chan = tran.open_session()