In Phase 2, a captured knock, resent by the outsider, opened the door, because the knock is just a pattern with no secret. SPA is built to pass this exact test. Here you confirm it does.
1. Send an SPA packet and keep a copy
-B saves the exact packet that’s sent.
2. Wait for the door to close
The access lasts 30 seconds. Wait it out, then confirm SSH is shut again.
3. Resend the exact same packet
4. Check the door
5. Confirm a fresh packet still works
You should see
- After the wait:
22/tcp filtered. The door closed. - After the replay: still
filtered. The resent packet did nothing. - After a fresh packet:
22/tcp open. A new, valid packet still works.
What it means
The firewall remembers every SPA packet it has accepted and refuses a repeat. A new packet is different every time, because it’s encrypted with a changing value and signed, so a copied one is recognised and dropped. The knock failed this test; SPA passes it. That one difference is why SPA replaced knocking.