Back to search
SSH key authentication
wizard securitySet up SSH key-based authentication for a user
Required Packages
sudo apt install -y openssh-server Steps
Step 1 of 4 25%
User to set up SSH key authentication for
Show all steps
User to set up SSH key authentication for
Paste the full public key (ssh-ed25519 AAAA... user@host)
Recommended for production — ensure key works first!
Generated Output
sudo mkdir -p /home//.ssh && echo '' | sudo tee -a /home//.ssh/authorized_keys && sudo chmod 700 /home//.ssh && sudo chmod 600 /home//.ssh/authorized_keys && sudo chown -R : /home//.ssh && sudo systemctl restart sshd