explain why we check ~/ssh/ in the demos
This commit is contained in:
Robey Pointer 2008-02-17 16:32:36 -08:00
parent 888aa8d5b7
commit 06faa6f2ed
2 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,7 @@ try:
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
except IOError:
try:
# try ~/ssh/ too, because windows can't have a folder named ~/.ssh/
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts'))
except IOError:
print '*** Unable to open host keys file'

View File

@ -66,6 +66,7 @@ try:
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
except IOError:
try:
# try ~/ssh/ too, because windows can't have a folder named ~/.ssh/
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts'))
except IOError:
print '*** Unable to open host keys file'