# Fix Permissions and Complete Key Loading

The keys were copied successfully, but the chmod command failed. Here's how to fix it:

## Quick Fix

Run these commands:

```bash
# 1. Set permissions manually
ssh root@192.168.11.11 "pct exec 107 -- bash -c 'for f in /opt/web3signer/data/keys/*.json; do [ -f \"\$f\" ] && chmod 644 \"\$f\"; done'"

# 2. Verify files
ssh root@192.168.11.11 "pct exec 107 -- ls -lh /opt/web3signer/data/keys/"

# 3. Restart Web3Signer
ssh root@192.168.11.11 "pct exec 107 -- systemctl restart web3signer && sleep 5"

# 4. Verify keys loaded
curl http://192.168.11.111:9000/api/v1/eth1/publicKeys
```

## Or Use the Fix Script

```bash
/tmp/fix-permissions.sh
```

## Then Configure Allowlist

Once keys are loaded:

```bash
cd /home/intlc/projects/proxmox/rpc-translator-138
ADDRESSES=$(curl -s http://192.168.11.111:9000/api/v1/eth1/publicKeys | jq -r '.[]' | tr '\n' ',' | sed 's/,$//')
./scripts/configure-wallet-allowlist.sh "$ADDRESSES"
```

## All-in-One Fix

```bash
# Fix permissions and restart
ssh root@192.168.11.11 "pct exec 107 -- bash -c 'for f in /opt/web3signer/data/keys/*.json; do [ -f \"\$f\" ] && chmod 644 \"\$f\"; done' && pct exec 107 -- systemctl restart web3signer && sleep 5"

# Verify
curl http://192.168.11.111:9000/api/v1/eth1/publicKeys

# Configure allowlist
cd /home/intlc/projects/proxmox/rpc-translator-138
ADDRESSES=$(curl -s http://192.168.11.111:9000/api/v1/eth1/publicKeys | jq -r '.[]' | tr '\n' ',' | sed 's/,$//')
./scripts/configure-wallet-allowlist.sh "$ADDRESSES"
```
