Mercurial > code > home > repos > infra
changeset 98:3d4340fbb16c
finish moving these lines from system.py
author | drewp@bigasterisk.com |
---|---|
date | Fri, 15 Jul 2022 14:36:00 -0700 |
parents | 9b7d7ea79f16 |
children | 6e159d3bdd40 |
files | ssh.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ssh.py Fri Jul 15 14:34:18 2022 -0700 +++ b/ssh.py Fri Jul 15 14:36:00 2022 -0700 @@ -20,3 +20,7 @@ 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOR+iV8Qm/rAfmq0epXYfnp5ZTfBl8eidFzw1GmyZ3fPUFAshWn839fQ5DPj9xDPtMy9kTtrB5bK1SnynFzDqzQ= drewp@bang', ]: files.line(path=auth_keys, line=pubkey, replace=pubkey) + +if not is_pi: + files.line(path='/etc/ssh/sshd_config', line="^UseDNS\b", replace="UseDNS no") + systemd.service(service='sshd', reloaded=True)