Unverified Commit 37bb8c04 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

set StrictHostKeyChecking, now that we are nicely handling the host keys

parent 5bee6bb4
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -7,10 +7,10 @@ with open(os.path.join(os.path.dirname(__file__), 'list.yml')) as f:
    data = yaml.load(f)

for host in data:
    print('Host', host['hostname'])
    print('    StrictHostKeyChecking yes')
    try:
        port = host['port']
        print('    Port', host['port'])
    except KeyError:
        # port not defined; no need to write this paragraph
        continue
    print('Host', host['hostname'])
    print('    Port', port)
        # default port, leave it.
        pass
+1 −1
Original line number Diff line number Diff line
- hostname: jenkins.debian.net,jenkins
- hostname: jenkins.debian.net
  ip: 46.16.76.207
  keys:
    - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root@jenkins