Files
proxmox/scripts/setup-ssh-keys.md

729 B

SSH Key Authentication Setup Guide

On Local Machine

  1. Generate SSH key pair (if not exists):

    ssh-keygen -t ed25519 -C "proxmox-deployment" -f ~/.ssh/id_ed25519_proxmox
    
  2. Copy public key to Proxmox host:

    ssh-copy-id -i ~/.ssh/id_ed25519_proxmox.pub root@192.168.11.10
    

On Proxmox Host

  1. Edit SSH config:

    nano /etc/ssh/sshd_config
    
  2. Set these options:

    PasswordAuthentication no
    PubkeyAuthentication yes
    
  3. 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!