diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py index b79bc50..a823fb3 100755 --- a/demos/demo_sftp.py +++ b/demos/demo_sftp.py @@ -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' diff --git a/demos/demo_simple.py b/demos/demo_simple.py index 691457e..5bcc214 100755 --- a/demos/demo_simple.py +++ b/demos/demo_simple.py @@ -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'