Skip to content

Commit

Permalink
feat: disable password authentication in ssh config (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 authored Jan 11, 2025
1 parent 95a0abb commit 8eb382d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ sudo virsh net-autostart default

# Replace '#Port' with 'Port 22' and 'Port 2222'
sudo sed -i 's/^#Port .*/Port 22\nPort 2222/' /etc/ssh/sshd_config
sudo sed -i 's/^#PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config


# Use ssh to append the public key to the remote authorized_keys file
Expand Down

0 comments on commit 8eb382d

Please sign in to comment.