Linux@lemmy.ml•Locking down a fresh Linux server: What you actually need to do before bots find itbyCallMeAl (like Alan)@piefed.worldEnglish3 days sudo apt update && sudo apt upgrade -y should be sudo apt update && sudo apt full-upgrade -y also for echo “PASTE_YOUR_PUBLIC_KEY_HERE” | ssh your_username@your_server_ip “mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys” why not just use ssh-copy-id ? edit: added more thoughts 4
also for
why not just use
ssh-copy-id?edit: added more thoughts