parent
3f4b2d4a24
commit
80fd22dce6
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class Connection(object):
|
|||
os.close(self.wfd)
|
||||
|
||||
def not_in_host_file(self, host):
|
||||
host_file = os.path.expanduser("~/.ssh/known_hosts")
|
||||
host_file = os.path.expanduser(os.path.expandvars("~${USER}/.ssh/known_hosts"))
|
||||
if not os.path.exists(host_file):
|
||||
print "previous known host file not found"
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue