# SSH Key Authentication Setup Guide

## On Local Machine

1. Generate SSH key pair (if not exists):
   ```bash
   ssh-keygen -t ed25519 -C "proxmox-deployment" -f ~/.ssh/id_ed25519_proxmox
   ```

2. Copy public key to Proxmox host:
   ```bash
   ssh-copy-id -i ~/.ssh/id_ed25519_proxmox.pub root@192.168.11.10
   ```

## On Proxmox Host

1. Edit SSH config:
   ```bash
   nano /etc/ssh/sshd_config
   ```

2. Set these options:
   ```
   PasswordAuthentication no
   PubkeyAuthentication yes
   ```

3. Restart SSH service:
   ```bash
   systemctl restart sshd
   ```

## Test

```bash
ssh -i ~/.ssh/id_ed25519_proxmox root@192.168.11.10
```

**Note**: Keep password authentication enabled until SSH keys are verified working!
