729 B
729 B
SSH Key Authentication Setup Guide
On Local Machine
-
Generate SSH key pair (if not exists):
ssh-keygen -t ed25519 -C "proxmox-deployment" -f ~/.ssh/id_ed25519_proxmox -
Copy public key to Proxmox host:
ssh-copy-id -i ~/.ssh/id_ed25519_proxmox.pub root@192.168.11.10
On Proxmox Host
-
Edit SSH config:
nano /etc/ssh/sshd_config -
Set these options:
PasswordAuthentication no PubkeyAuthentication yes -
Restart SSH service:
systemctl restart sshd
Test
ssh -i ~/.ssh/id_ed25519_proxmox root@192.168.11.10
Note: Keep password authentication enabled until SSH keys are verified working!