fixes for ssh

This commit is contained in:
2025-03-30 15:33:11 +00:00
parent 5c1c15b3bc
commit a6efe2cd95

View File

@@ -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