Troubleshooting
When a firewall blocks SFTP as Psiphon traffic
Short answer
The Psiphon label is the firewall's classification of the SSH handshake, not installed software, so there is nothing to remove. Excluding the encrypt-then-MAC hmac-sha2-256 MAC from the client's proposal with the -o MACs= option restores the transfer.
On this page
When a firewall stamps an edge controller's SFTP session as Psiphon and drops it, there is nothing to uninstall. The label is the firewall's application classification of the SSH handshake — inspection software matching what the negotiation looks like on the wire — and the trigger in the documented case was a single entry in the client's algorithm proposal: the encrypt-then-MAC hmac-sha2-256 MAC. Excluding that one MAC from the negotiation with -o MACs=-<name>, using the exact algorithm name your client prints in its verbose output, let the file transfer complete with no other change. The checks below prove which situation you are in — a misclassified SSH session or genuinely unwanted software — before anyone touches cryptographic settings.
What the Psiphon label actually tells you #
Application identification is a classification the firewall assigns from the observed protocol characteristics of a session. It is not an inventory of software on the controller, and a Psiphon label on a blocked session does not prove a Psiphon process created the connection. When IT asks for the tool to be disabled or removed, there is no target to act on until the label is tied to your traffic.
Two readings settle it on the box:
- List the running processes and containers on the edge PC. Node-RED and a file manager are the expected entries; anything tunneling or proxying outbound traffic would have to appear here to generate sessions.
- Watch the controller's outbound sockets during one scheduled transfer. The only outbound SSH session should be the SFTP job to its server on the configured port (22 unless your server uses another).
Decision: if the only outbound SSH session is your transfer, the label rides your session. Treat it as a classification problem, not as malware, and continue to the handshake checks.
Why the SSH handshake can trip a signature #
SSH establishes its cryptographic protection before the user authenticates or any file moves. A message authentication code (MAC) detects modification of protected traffic, and the encrypt-then-MAC hmac-sha2-256 construction names an OpenSSH capability — a cryptographic choice, not a tunneling application. The peers exchange ordered lists of supported algorithms and use the first algorithm on the client's list that the server also lists, and those lists are readable on the wire early in the exchange.
That ordering is what makes a false positive possible: an inspection engine can match a signature against a capability the client merely advertised, then reset the connection before the peers select anything. A blocked handshake can therefore end with no selected MAC in the client log. The staged reading discipline is the same one that applies when an MQTT connect fails although TCP works: find where the attempt stops before changing anything.
Correlate the block with the transfer #
Record from the client side: the failed-transfer error, the attempt time, the destination address and the configured destination port. Ask the network administrator for the matching session: source address, destination address, application classification and enforcement action. Where Docker networking translates the container's source address, correlate the address the firewall sees with the controller's outbound connection.
Illustrative correlation check: a CSV job runs at 06:00, 06:15 and 06:30, and the firewall logs denied Psiphon sessions at 06:00:01, 06:15:02 and 06:30:01, each from the controller's translated address to the SFTP server on port 22. That is 3 blocked events for 3 scheduled runs — 3 ÷ 3 = 100% correlation, with 1 to 2 s of offset per attempt — and zero Psiphon events at any other time. The label rides the SFTP session.
If no matching deny exists, stop before touching cryptography: check name resolution, routing, the server listener and the actual client destination. An unrelated Psiphon event is not a reason to alter the SFTP client.
Read the failure stage with verbose logging #
Reproduce the connection with the same destination and network path — a test from a different workstation can cross a different firewall policy. On an OpenSSH command-line client, -vvv gives the detailed diagnostic output. Find where the attempt stops:
| Observed reading | Engineering meaning | Next check |
|---|---|---|
| No connection to the server is established | The failure precedes SSH negotiation | Destination resolution, routing, listener, firewall transport policy |
| Negotiation starts, then the connection closes with the matching deny | Protocol inspection is the candidate cause | Advertised MAC list, then a controlled exclusion |
| Authentication is reached and credentials rejected | The handshake passed | Account, key, server authentication policy |
| Authentication succeeds but the file never lands | The failure is downstream of the handshake | SFTP service access, destination directory permissions |
Record both the advertised algorithm lists and the selected algorithm whenever the log shows them.
Exclude the single MAC #
Run the same connection with the exclusion applied per invocation, substituting the exact MAC name your verbose output printed:
ssh -vvv -o MACs=-<name> user@host
The leading minus removes the named algorithm from the default list instead of replacing the list with one choice — subtract one name from a default list of eight and seven offered MACs remain, and negotiation succeeds if any of the seven also appears in the server's list. Keep the server, credentials, destination and routing unchanged, and change one variable at a time: the baseline run is blocked with the MAC offered, the excluded run completes negotiation, authenticates and transfers the file with no further Psiphon deny. Two runs, one changed setting — that is the whole isolation.
Store the exclusion in the client's per-host configuration for that destination so every scheduled transfer uses it and unrelated SSH connections keep their existing policy. If SSH then reports no mutually acceptable MAC, compare the client's remaining choices with the algorithms the server permits and set one that appears in both and in your approved algorithm policy.
Security note: dropping one encrypt-then-MAC construction does not turn integrity protection off — the session still negotiates a MAC — but the resulting algorithm set should get a pass from whoever owns the approved algorithm policy.
Make the change where the job actually runs #
A successful command-line test proves the behavior of that client only. A Node-RED SFTP node may invoke an external OpenSSH client or use an SSH library with its own algorithm settings, so read the installed node's configuration and documentation to identify the implementation responsible for the outbound session, and apply the exclusion to that process, scoped to the destination.
Persist it through the container deployment's managed configuration. A change made only in the host operating system can leave the container untouched, and an interactive edit inside a running container disappears when the container is replaced — the same persistence rule that applies when you are configuring MQTT TLS certificates in Node-RED on an edge PC.
Close it out on the firewall #
The client-side exclusion unblocks this transfer; it does not fix the classification. The signature will label the next SSH client that offers the same MAC, so the durable change belongs to the network team: correct the application signature, or allow SSH from the edge subnet to that server. That is the same coordination path required for remote SCADA access through firewalls and proxies.
Decisions:
- Firewall deny matches the SFTP session: nothing to uninstall; exclude the MAC and the transfer resumes.
- No matching deny: fix resolution, routing or the listener before changing cryptography.
- The exclusion breaks negotiation: align the client and server MAC lists within the approved policy, never by re-enabling obsolete algorithms.
- IT ticket: correct the signature, then retest the transfer with the exclusion removed.
Questions asked
Could a container on the controller actually be running Psiphon?
List the images you pulled and the processes inside each running container; a tunneling tool would have to run somewhere visible. Then watch the outbound sockets during one scheduled transfer. If only Node-RED and your file manager are running and the single outbound SSH session goes to your SFTP server, there is no source on the box for the label — it is the firewall's classification of that session.
Does removing the encrypt-then-MAC hmac-sha2-256 MAC weaken the SSH connection?
No integrity protection is lost. Encrypt-then-MAC is one way to apply the message authentication code, and the session still negotiates a MAC from the remaining list, so tamper detection stays on. The change narrows the offered algorithms by one name, which is exactly why the resulting set should be confirmed against your approved algorithm policy rather than assumed.
Why does the same SFTP server work from my workstation?
Clients advertise different default algorithm lists. A workstation with an older or differently configured SSH stack may never offer the encrypt-then-MAC MAC, so its handshake does not match the signature the firewall reacts to. Running the verbose connection from a passing client and from the edge PC and comparing the offered lists is the fastest way to see the one name that differs.
Should IT fix the firewall instead of changing the client?
Yes, as the durable fix. The exclusion unblocks this transfer, but the signature still labels the next SSH client that offers the same MAC. Ask the network team to correct the application signature or to allow SSH to that server from the edge subnet, and keep the client-side exclusion until that change is in and retested.
Will the exclusion survive an OpenSSH or container update?
Not by itself. A per-invocation option affects only that run, and an update to the client or the container image can change the default algorithm list. Pin the exclusion in the managed per-host configuration for that destination and rerun the transfer after every update to confirm it still negotiates without the blocked MAC.