VPS1Euro Dashboard Wiki

Complete client guide: infrastructure, services, account and support.

FR EN

SSH keys (passwordless connection)

Generate and deploy SSH keys to secure and simplify your connections.

What this tutorial does

The tutorial "SSH keys (passwordless connection)" helps you achieve this goal:

Generate and deploy SSH keys to secure and simplify your connections.

← Back to tutorials
1 profiles 15 steps 10 commands ~15 min

Windows (PowerShell) + Linux

  1. --- Generate an SSH key pair on Windows (PowerShell) ---
  2. ssh-keygen -t ed25519 -C "[email protected]"
  3. Accept the default path: C:\Users\YourName\.ssh\id_ed25519
  4. Set or leave the passphrase blank.
  5. --- Copy public key to container ---
  6. Method 1 (PowerShell): type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@IP "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
  7. Method 2 (from Linux): ssh-copy-id -i ~/.ssh/id_ed25519.pub root@IP
  8. --- Check rights on the server ---
  9. chmod 700 ~/.ssh
  10. chmod 600 ~/.ssh/authorized_keys
  11. --- Test connection without password ---
  12. ssh root@IP (should not ask for a password)
  13. --- Disable password authentication ---
  14. In /etc/ssh/sshd_config: PasswordAuthentication no
  15. systemctl restart sshd