Panier 0 Panier
🌐
Langue & Devise
Language & Currency
Langue & Devise
← Retour à la base de connaissance
Article

Secure SSH with keys (goodbye passwords)

SSH keys are safer and more convenient than passwords — here's the full setup. Generate your key pair (on your PC) ssh-keygen -t ed25519 Two files are created: id_ed25519 (private, never share) and id_ed25519.pub (public, to install).…

🛡️ Anti-DDoS gaming ⚡ NVMe 🇨🇦 100 % canadien ↩️ Garantie 7 jours 🖥️ Pterodactyl ⚙️ AMD Ryzen 7 9800X3D
📚 Base de connaissance

SSH keys are safer and more convenient than passwords — here's the full setup.

Generate your key pair (on your PC)

ssh-keygen -t ed25519

Two files are created: id_ed25519 (private, never share) and id_ed25519.pub (public, to install).

Install the public key on the VPS

ssh-copy-id myuser@YOUR_IP

Or manually:

mkdir -p ~/.ssh
nano ~/.ssh/authorized_keys   # paste your id_ed25519.pub contents
chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys

Disable password auth

sudo nano /etc/ssh/sshd_config
# PasswordAuthentication no
sudo systemctl reload ssh
Test key login before disabling passwords — keep a rescue session open.

Tu n'as pas trouvé ta réponse ?

Notre équipe canadienne répond en moins d'une heure, 7j/7.

Cet article t'a été utile ?

Powered by WHMCompleteSolution

Serveurs en ligne

Lancez votre serveur
en 60 secondes.

Forfaits dès 6,99 $CA · Protection Anti-DDoS · 100 % Canadien

NordikServer — Game Panel
$ server start
✔ Online in 2.4s — ready
[INFO] Panel ready · Resources allocated
[DDoS] Anti-DDoS shield: ACTIVE
Anti-DDoS Gaming
Garantie 7 jours
En ligne en 60s
🇨🇦 Hébergeur Canadien
99.99% Uptime
Chargement