Commit 93f66563 authored by Michal Horejsek's avatar Michal Horejsek

Ignore warnings of permanently added host

parent 2cf559b0
......@@ -141,6 +141,7 @@ class ProxySSHSession(SSHSessionForUnixConchUser):
'ssh',
'-o', 'UserKnownHostsFile=/dev/null',
'-o', 'StrictHostKeyChecking=no',
'-o', 'LogLevel=error', # Ignore warning of permanently added host to list of known hosts.
'-p', str(self.cmd_args.honeypot_port),
'{}@{}'.format(force_text(self.avatar.username), self.cmd_args.honeypot_host),
]
......
......@@ -56,6 +56,7 @@ def test_honeypot_ssh_arguments(proxy_ssh_session):
'ssh',
'-o', 'UserKnownHostsFile=/dev/null',
'-o', 'StrictHostKeyChecking=no',
'-o', 'LogLevel=error',
'-p', '2222',
'user@localhost',
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment