Proxmox SSH Authentication - sullivaneg/Raspberry-Pi-Proxmox-Lab GitHub Wiki

Objective

Disable root password authentication for Proxmox and enable SSH.


Allow Passwordless Login for Pi

Mac

  1. Generate a SSH Key -> ssh-keygen -t rsa -b 4096
  2. ssh-copy-id -i ~/.ssh/id_rsa.pub root@<ip>

Windows

  1. Generate a SSH Key -> ssh-keygen -t rsa -b 4096
  2. Copy public key from ~/.ssh
  3. SSH into Pi -> navigate to ~/.ssh/authorized_keys -> copy key into file

Disable PasswordAuthentication

  1. nano /etc/ssh/sshd_config
  2. Uncomment PasswordAuthentication yes and change to no
  3. sudo systemctl restart sshd