# SSH Key Upload Complete

## Summary

✅ **SSH key successfully uploaded to Nginx proxy**

- **Source**: `/home/intlc/projects/smom-dbis-138/besuadmin-us-nodes_key.pem`
- **Destination**: `~/.ssh/id_rsa` on Nginx proxy (20.160.58.99)
- **Permissions**: 600 (correct for private key)
- **Key Type**: RSA 3072-bit
- **Fingerprint**: `SHA256:dBhepwxJtuKrQ3+1y64n1Jo8fspsJPyKbwgTYcSdqJE`
- **Public Key Extracted**: `~/.ssh/id_rsa.pub`

## SSH Connectivity Status

✅ **4/5 backend VMs accessible**:
- ✅ Central US (cus) - 10.1.1.4
- ✅ East US (eus) - 10.2.1.4
- ✅ East US 2 (eus2) - 10.3.1.4
- ✅ West US (wus) - 10.4.1.4
- ⏳ West US 2 (wus2) - 10.5.1.4 (key needs to be added)

## 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>
```

## Next Steps

Now that SSH is working, you can:

1. **Deploy genesis file** via SCP from Nginx proxy:
   ```bash
   scp /tmp/genesis-138.json besuadmin@10.1.1.4:/opt/besu/config/genesis.json
   ```

2. **Restart Besu containers** via SSH:
   ```bash
   ssh besuadmin@10.1.1.4 "cd /opt/besu && docker compose restart besu"
   ```

3. **Check Besu logs**:
   ```bash
   ssh besuadmin@10.1.1.4 "docker logs besu-besu-node-0 --tail 50"
   ```

---

**Last Updated**: After uploading SSH key and testing connectivity

