Mercurial > code > home > repos > infra
diff ssh.py @ 98:3d4340fbb16c
finish moving these lines from system.py
author | drewp@bigasterisk.com |
---|---|
date | Fri, 15 Jul 2022 14:36:00 -0700 |
parents | 15c5ce7c74b5 |
children | ff8879eed64e |
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)