explain why we check ~/ssh/ in the demos
This commit is contained in:
parent
888aa8d5b7
commit
06faa6f2ed
|
@ -66,6 +66,7 @@ try:
|
||||||
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
|
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
|
||||||
except IOError:
|
except IOError:
|
||||||
try:
|
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'))
|
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts'))
|
||||||
except IOError:
|
except IOError:
|
||||||
print '*** Unable to open host keys file'
|
print '*** Unable to open host keys file'
|
||||||
|
|
|
@ -66,6 +66,7 @@ try:
|
||||||
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
|
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
|
||||||
except IOError:
|
except IOError:
|
||||||
try:
|
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'))
|
host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts'))
|
||||||
except IOError:
|
except IOError:
|
||||||
print '*** Unable to open host keys file'
|
print '*** Unable to open host keys file'
|
||||||
|
|
Loading…
Reference in New Issue