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

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 5bee6bb4
......@@ -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
- hostname: jenkins.debian.net,jenkins
- hostname: jenkins.debian.net
ip: 46.16.76.207
keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVYP8sYSp95zWTMFVEbt6aw3RAyv+4tjNh/JfbsihXQ root@jenkins
......
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