# SSH Setup Required for Translator Deployment

**Date**: 2026-01-05  
**Status**: SSH Authentication Required

---

## Current Situation

The translator deployment scripts require SSH access to VMIDs 2400-2402, but SSH authentication is not yet configured. The VMIDs exist and SSH ports are open, but authentication (password or SSH key) is needed.

---

## Quick Fix Options

### Option 1: Use Existing Proxmox SSH Key (If Already Configured)

If you have an existing SSH key that's already authorized on the VMIDs:

```bash
# Test if existing key works
ssh -i ~/.ssh/id_ed25519_proxmox root@192.168.11.240 "echo 'Connected'"

# If it works, update deployment script to use it
# Or set SSH_AUTH_SOCK if using ssh-agent
```

### Option 2: Manual SSH Key Setup (One-Time)

**Step 1: Display your public key**
```bash
cat ~/.ssh/proxmox_translator.pub
```

**Step 2: Copy the key to each VMID manually**

SSH to each VMID and run:
```bash
# On each VMID (2400, 2401, 2402)
mkdir -p ~/.ssh
echo "PASTE_PUBLIC_KEY_HERE" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh
```

**Step 3: Test**
```bash
ssh -i ~/.ssh/proxmox_translator root@192.168.11.240 "echo 'Success'"
```

### Option 3: Use Password Authentication

If you know the root passwords, you can use them interactively:

```bash
# The deployment scripts will prompt for passwords
cd /home/intlc/projects/proxmox/rpc-translator-138
./scripts/deploy-all-vmids.sh
# Enter password when prompted for each VMID
```

### Option 4: Deploy via Proxmox Host (If VMIDs are LXC)

If VMIDs 2400-2402 are LXC containers, we can deploy via Proxmox host:

```bash
# From Proxmox host
ssh root@192.168.11.11

# Copy files to each container
pct push 2400 /path/to/rpc-translator-138 /opt/rpc-translator-138
# etc.
```

---

## Recommended Approach

**If you have root passwords for the VMIDs:**

1. **Copy SSH key once (interactive):**
   ```bash
   ssh-copy-id -i ~/.ssh/proxmox_translator.pub root@192.168.11.240
   # Enter password when prompted
   # Repeat for .241 and .242
   ```

2. **Then run automated deployment:**
   ```bash
   cd /home/intlc/projects/proxmox/rpc-translator-138
   ./scripts/deploy-all-vmids.sh
   ```

**If you don't have passwords:**

You'll need to:
- Access the VMIDs via Proxmox console/UI
- Or set up SSH keys manually via Proxmox host
- Or configure password authentication

---

## Next Steps After SSH is Configured

Once SSH authentication works:

1. ✅ Deploy translator service (automated)
2. ✅ Configure .env files (automated script ready)
3. ✅ Start services (automated script ready)
4. ✅ Verify functionality (automated script ready)

All scripts are ready and will run automatically once SSH access is established.

---

## Public Key for Manual Setup

If you want to manually add the SSH key, here's the public key:

```bash
cat ~/.ssh/proxmox_translator.pub
```

Copy this key to `~/.ssh/authorized_keys` on each VMID (2400, 2401, 2402).
