Expand user in SSH identity file.
This commit is contained in:
parent
1804df0bae
commit
c2f1aefaf1
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class ParamikoConnection(object):
|
||||||
if 'user' in credentials:
|
if 'user' in credentials:
|
||||||
user = credentials['user']
|
user = credentials['user']
|
||||||
if 'identityfile' in credentials:
|
if 'identityfile' in credentials:
|
||||||
keypair = credentials['identityfile']
|
keypair = os.path.expanduser(credentials['identityfile'])
|
||||||
|
|
||||||
ssh = paramiko.SSHClient()
|
ssh = paramiko.SSHClient()
|
||||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||||
|
|
Loading…
Reference in a new issue