Add rm known hosts file to fix SFTP behaviour after key change
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user