Refactor code for improved readability and performance

This commit is contained in:
defiQUG
2025-12-21 22:32:09 -08:00
parent 79e3c02f50
commit b45c2006be
2259 changed files with 380318 additions and 2 deletions

39
scripts/setup-ssh-keys.md Normal file
View File

@@ -0,0 +1,39 @@
# 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!