Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Disable strict host key checking for ssh
Browse files Browse the repository at this point in the history
Change-Id: I59cf2e34910f5d8a886d44091e5b35d76fafc13b
Reviewed-on: https://gerrit.spotify.net/gerrit/77145
Reviewed-by: Paweł Rozlach <[email protected]>
  • Loading branch information
Pawel Rozlach committed Sep 19, 2013
1 parent 8152034 commit 2de55f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/certcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, host, pubkey, port=None, username=None, *args, **kwargs):
def _connect(self, cmd, path):
#FIXME: This has no way to deal with passphrases..
#FIXME: can we rely on ssh being in PATH here ?
args = ['ssh', '-x']
args = ['ssh', '-x', '-oStrictHostKeyChecking=no']
args.extend(['-i', self.pubkey])
if self.port is not None:
args.extend(['-p', str(self.port)])
Expand Down Expand Up @@ -353,8 +353,8 @@ def notify_immediate(cls, exit_status, exit_message):
return

logging.warn("notify_immediate, " +
"exit_status=<{0}>, exit_message=<{1}>".format(
exit_status, exit_message))
"exit_status=<{0}>, exit_message=<{1}>".format(
exit_status, exit_message))
event = {
'host': cls._hostname,
'service': SERVICE_NAME,
Expand Down

0 comments on commit 2de55f4

Please sign in to comment.