73 lines
2.0 KiB
Markdown
73 lines
2.0 KiB
Markdown
|
|
# SSH Setup via Proxmox Web UI
|
||
|
|
|
||
|
|
**Last Updated**: 2024-12-19
|
||
|
|
|
||
|
|
## Quick Setup Method
|
||
|
|
|
||
|
|
Since password authentication is having issues, use the Proxmox Web UI Shell to add SSH keys directly.
|
||
|
|
|
||
|
|
## Step-by-Step Instructions
|
||
|
|
|
||
|
|
### Step 1: Get Your Public SSH Key
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cat ~/.ssh/sankofa_proxmox.pub
|
||
|
|
```
|
||
|
|
|
||
|
|
Copy the entire output (starts with `ssh-ed25519` or `ssh-rsa`).
|
||
|
|
|
||
|
|
### Step 2: Add Key to ML110-01
|
||
|
|
|
||
|
|
1. **Log in to Proxmox Web UI**: https://ml110-01.sankofa.nexus:8006
|
||
|
|
2. **Navigate to Shell**:
|
||
|
|
- Go to: **Datacenter** → **Nodes** → **ML110-01** → **Shell**
|
||
|
|
3. **Run these commands**:
|
||
|
|
```bash
|
||
|
|
mkdir -p ~/.ssh
|
||
|
|
chmod 700 ~/.ssh
|
||
|
|
echo "YOUR_PUBLIC_KEY_HERE" >> ~/.ssh/authorized_keys
|
||
|
|
chmod 600 ~/.ssh/authorized_keys
|
||
|
|
```
|
||
|
|
Replace `YOUR_PUBLIC_KEY_HERE` with the key from Step 1.
|
||
|
|
|
||
|
|
### Step 3: Add Key to R630-01
|
||
|
|
|
||
|
|
1. **Log in to Proxmox Web UI**: https://r630-01.sankofa.nexus:8006
|
||
|
|
2. **Navigate to Shell**:
|
||
|
|
- Go to: **Datacenter** → **Nodes** → **R630-01** → **Shell**
|
||
|
|
3. **Run the same commands** as Step 2.
|
||
|
|
|
||
|
|
### Step 4: Verify SSH Access
|
||
|
|
|
||
|
|
```bash
|
||
|
|
ssh -i ~/.ssh/sankofa_proxmox root@192.168.11.10 'hostname'
|
||
|
|
ssh -i ~/.ssh/sankofa_proxmox root@192.168.11.11 'hostname'
|
||
|
|
```
|
||
|
|
|
||
|
|
## Your Public Key
|
||
|
|
|
||
|
|
Your SSH public key is:
|
||
|
|
```
|
||
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDVAs8muaMmImFP+EQ4YjBepx7Sz4zBrWjV2i6GtfS5i sankofa-proxmox
|
||
|
|
```
|
||
|
|
|
||
|
|
Copy this entire line and paste it into the `echo` command above.
|
||
|
|
|
||
|
|
## Quick Copy-Paste Commands
|
||
|
|
|
||
|
|
### For ML110-01:
|
||
|
|
```bash
|
||
|
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDVAs8muaMmImFP+EQ4YjBepx7Sz4zBrWjV2i6GtfS5i sankofa-proxmox" >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
|
||
|
|
```
|
||
|
|
|
||
|
|
### For R630-01:
|
||
|
|
```bash
|
||
|
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDVAs8muaMmImFP+EQ4YjBepx7Sz4zBrWjV2i6GtfS5i sankofa-proxmox" >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
|
||
|
|
```
|
||
|
|
|
||
|
|
## Related Documentation
|
||
|
|
|
||
|
|
- [SSH Troubleshooting](./SSH_TROUBLESHOOTING.md)
|
||
|
|
- [SSH Setup with .env](./SSH_SETUP_WITH_ENV.md)
|
||
|
|
|