# SSH Key Setup Complete

## Actions Taken

1. ✅ **Generated new SSH key pair on Nginx proxy**
   - Key type: RSA 4096-bit
   - Location: `~/.ssh/id_rsa` (private) and `~/.ssh/id_rsa.pub` (public)
   - Comment: `besuadmin@nginx-proxy`

2. ⏳ **Adding public key to backend VMs**
   - Using Azure Run Command to add public key to `~/.ssh/authorized_keys` on each VM
   - Status: In progress

3. ⏳ **Testing SSH connectivity**
   - Will verify SSH connections from Nginx proxy to all backend VMs

## SSH Commands

### From Nginx Proxy to Backend VMs

```bash
# Central US (cus)
ssh -o StrictHostKeyChecking=no besuadmin@10.1.1.4

# East US (eus)
ssh -o StrictHostKeyChecking=no besuadmin@10.2.1.4

# East US 2 (eus2)
ssh -o StrictHostKeyChecking=no besuadmin@10.3.1.4

# West US (wus)
ssh -o StrictHostKeyChecking=no besuadmin@10.4.1.4

# West US 2 (wus2)
ssh -o StrictHostKeyChecking=no besuadmin@10.5.1.4
```

### Batch Command to Test All

```bash
for IP in 10.1.1.4 10.2.1.4 10.3.1.4 10.4.1.4 10.5.1.4; do
  ssh -o StrictHostKeyChecking=no besuadmin@$IP 'echo Connected to $(hostname)'
done
```

### From Local Machine

```bash
# Connect to Nginx proxy first
ssh -o StrictHostKeyChecking=no besuadmin@20.160.58.99

# Then from Nginx proxy, connect to backend VMs
ssh -o StrictHostKeyChecking=no besuadmin@<backend-ip>
```

## Key Locations

- **Nginx Proxy**: `~/.ssh/id_rsa` (private) and `~/.ssh/id_rsa.pub` (public)
- **Backend VMs**: `~/.ssh/authorized_keys` (contains the public key)

## Next Steps

Once SSH keys are configured:
1. ✅ SSH connectivity from Nginx proxy to backend VMs
2. Deploy genesis file via SCP from Nginx proxy
3. Restart Besu containers via SSH
4. Test RPC endpoints

---

**Last Updated**: After generating new SSH key pair

