summaryrefslogtreecommitdiff
path: root/test-sftpfs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-10-20 12:17:16 +0100
committerLars Wirzenius <liw@liw.fi>2013-10-20 12:17:16 +0100
commit59aecac9c07abb452d5b8b6078a91e960ee18319 (patch)
treed2b6f8dbc23607e4ea0b31f99f4701aa06549e68 /test-sftpfs
parent8ed777e3abaa62b129b678a02d4c8d82ae2f4c5b (diff)
downloadobnam-59aecac9c07abb452d5b8b6078a91e960ee18319.tar.gz
Add new, better ssh host key checking option
Patch by Itamar Turner-Trauring, with changes to test-sftpfs by me.
Diffstat (limited to 'test-sftpfs')
-rwxr-xr-xtest-sftpfs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-sftpfs b/test-sftpfs
index 6a7b9b93..4b8e6c39 100755
--- a/test-sftpfs
+++ b/test-sftpfs
@@ -50,6 +50,7 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests):
'strict-ssh-host-keys': False,
'ssh-known-hosts': os.path.expanduser('~/.ssh/known_hosts'),
'ssh-command': None,
+ 'ssh-host-keys-check': 'no',
}
self.fs = obnamlib.plugins.sftp_plugin.SftpFS(baseurl,
settings=settings)
@@ -72,6 +73,7 @@ class SftpTests(unittest.TestCase, obnamlib.VfsTests):
'strict-ssh-host-keys': False,
'ssh-known-hosts': os.path.expanduser('~/.ssh/known_hosts'),
'ssh-command': None,
+ 'ssh-host-keys-check': 'no',
}
fs = obnamlib.plugins.sftp_plugin.SftpFS(baseurl, settings=settings)
fs.connect()