From a6efe2cd95fda870f6b97dcf3a42560e5bd820ef Mon Sep 17 00:00:00 2001 From: "Harry (hjbdev)" Date: Sun, 30 Mar 2025 15:33:11 +0000 Subject: [PATCH] fixes for ssh --- provision.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provision.sh b/provision.sh index 0d15b16..38653d7 100644 --- a/provision.sh +++ b/provision.sh @@ -42,9 +42,6 @@ echo "" | sudo tee -a /etc/ssh/sshd_config echo "" | sudo tee -a /etc/ssh/sshd_config echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config -# Restart SSH -ssh-keygen -A service ssh restart - # UTC ln -sf /usr/share/zoneinfo/UTC /etc/localtime @@ -84,6 +81,9 @@ cp /root/.ssh/authorized_keys /home/keystone/.ssh/authorized_keys # Create The Server SSH Key ssh-keygen -f /home/keystone/.ssh/id_ed25519 -t ed25519 -N '' +# Restart SSH +service ssh restart + # Setup Keystone Home Directory Permissions chown -R keystone:keystone /home/keystone chmod -R 755 /home/keystone