Add rm known hosts file to fix SFTP behaviour after key change

This commit is contained in:
2026-01-09 23:40:58 -05:00
parent 2937a893bf
commit c01ad4e5a2

View File

@@ -38,6 +38,6 @@ cat /.SSH/automated/pub/servers/id_ed25519.pub | tee /home/$USER/.ssh/authorized
chmod 700 /home/$USER/.ssh
chmod 600 /home/$USER/.ssh/id_ed25519
chmod 600 /home/$USER/.ssh/authorized_keys
chown admin -R /home/$USER/.ssh
chown $USER -R /home/$USER/.ssh
systemctl restart sshd