Update deploy script

This commit is contained in:
idanoo 2022-10-11 22:28:15 +13:00
parent e5e4e9232a
commit b61a6d4543
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -34,8 +34,8 @@ sudo chmod +x /usr/local/bin/check_keys
/usr/local/bin/check_keys /usr/local/bin/check_keys
# Update SSHD to use it.. # Update SSHD to use it..
sudo cat "AuthorizedKeysCommand /usr/local/bin/check_keys" >> /etc/ssh/sshd_config sudo echo "AuthorizedKeysCommand /usr/local/bin/check_keys" >> /etc/ssh/sshd_config
sudo cat "AuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config sudo echo "AuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config
# Restart for good luck # Restart for good luck
sudo systemctl restart {sshd,ssh} sudo systemctl restart {sshd,ssh}