Clarify Permission denied (publickey) after LAN path is fixed. Paperclip-Issue: BIT-1044 Paperclip-Run: d953718f-48be-4046-b7d7-ca7c22ad4315 Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
4.0 KiB
DevOps runbook — SSH from Paperclip host to WDMI Importer (BIT-1044)
Issue: BIT-1044
Unblocks: BIT-1041 (Importer maintenance scripts on the production guest, not in WDMI_UBUNTU git).
Goal
From the Paperclip execution host (10.10.50.17, user paperclip), run:
ssh -o BatchMode=yes -o ConnectTimeout=10 [email protected] echo ok
Expected stdout: ok (no password prompt).
Canonical Importer LAN IP and deploy path: WDMI deploy runbook §2.
Prerequisites (network)
The host has dual homing: VLAN 1050 (10.10.50.17) and LAN 192.168.1.0/24 (192.168.1.239 on eth1). Traffic to 192.168.1.123 must leave via eth1 with working L2/L3 to the Importer.
Typical failure (pre-fix): ip neigh show 192.168.1.123 stays INCOMPLETE / FAILED; ping loss; SSH No route to host.
Route OK, auth missing: SSH connects (no No route to host) but Permission denied (publickey,password) with BatchMode means TCP/22 is fine and root is not yet accepting paperclip@bitreport-cto — apply the SSH key section below on 192.168.1.123 (console or an existing privileged session).
Isolation check (Paperclip host, 2026-04): On 10.10.50.17, if 192.168.1.1 (gateway) and 192.168.1.17 (CT 220 wdmi-store eth1) answer ping but 192.168.1.123 does not, the Paperclip eth1 path on 192.168.1.0/24 is healthy and the fault is almost certainly Importer-specific (wrong IP, guest down, host firewall, isolated switch port, or ACL dropping that host). Fix those before spending time on VLAN 1050 routing.
Operator actions (edge firewall / switch / guest):
- Confirm
192.168.1.123is the live Importer address (vault / inventory). - Allow TCP/22 from at least:
192.168.1.239(Paperclipeth1), and192.168.1.17(CT 220wdmi-storeeth1, if CTO uses that hop).
- Ensure the Importer OS is up,
sshdlistening on:22, and no host firewall drops those sources.
SSH key (Paperclip → root on Importer)
Use the same Ed25519 public key as BIT-720 / BIT-721 (paperclip@bitreport-cto):
On 10.10.50.17 as paperclip:
cat ~/.ssh/id_ed25519.pub
On 192.168.1.123 as a user with privilege to edit root keys (console, IPMI, or existing SSH):
install -d -m 700 /root/.ssh
touch /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
grep -qF '<paste line from id_ed25519.pub>' /root/.ssh/authorized_keys || echo '<paste line>' >> /root/.ssh/authorized_keys
Do not commit private keys or paste them into issues.
Alternative path (Proxmox guest)
If the Importer is an LXC/VM on node9 and LAN routing cannot be fixed quickly, root on the Paperclip host may use pct via ssh [email protected] after one-time trust — see Paperclip meta-repo docs/runbooks/AUTOMATION_PAPERCLIP_HOST_NODE9.md and tools/proxmox/push_pubkey_to_lxc_via_node9.sh (workstation or root on 10.10.50.17 with node9 key). The unprivileged paperclip account does not perform that hop unless explicitly configured.
Verification (automation-friendly)
From the errors.bitreport.pt repo on a machine that should have access (normally 10.10.50.17):
./scripts/devops/verify_importer_ssh_bit1044.sh
Exit code 0 only when the BatchMode SSH check succeeds.
Related hub docs
- BIT-1079 — CTO escalation when
192.168.1.123is offline or LAN routing is broken for multiple dependents (BIT-1044, BIT-1041, etc.). - RUNBOOK_REPORTER_WDMI_CACHE_MKDIR.md — Importer reachability note for runners.
- RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md — Importer deploy references.