mycelium icon indicating copy to clipboard operation
mycelium copied to clipboard

SSH connection over Mycelium network becomes unstable after some time

Open Mahmoud-Emad opened this issue 1 month ago • 1 comments

Description:

When using the Mycelium network to establish an SSH connection between two machines, the connection drops unexpectedly after some time. Once the connection is lost, restarting the Mycelium process (mycelium binary) restores connectivity, but the issue reoccurs periodically.

This happens consistently and seems unrelated to SSH client/server configuration.

Steps to Reproduce:

  1. Start Mycelium on two machines and connect them via public or private nodes.
  2. Establish an SSH session between the two machines over the Mycelium network.
  3. Keep the SSH session active for a while (e.g., several minutes).
  4. Observe that the SSH connection becomes unresponsive or disconnects.
  5. Restarting the mycelium process temporarily resolves the issue.

Environment:

Mycelium Version:

  • 0.6.1 (observed by me)
  • 0.6.2 (latest version — same issue observed by @AbdelrahmanElawady )

Platform: MacOS

Mahmoud-Emad avatar Nov 03 '25 08:11 Mahmoud-Emad

Let's do the following to collect info that will be helpful for debugging this:

  • Enable debug logging for local mycelium (add -d in the systemd service)
  • At the time of connection difficulty, collect outputs from the following commands:
    • mycelium routes selected
    • mycelium routes fallback
    • mycelium routes queried
    • mycelium routes no-route
  • Collect logs, ideally focused around the time the issue begins
  • Note the destination Mycelium IP

Here's a bash script to collect all of the outputs into a file:

for cmd in selected fallback queried no-route; do
  echo "--- mycelium routes $cmd ---" >> routes_output;
  mycelium routes "$cmd" >> routes_output;   
  echo "" >> routes_output;
done

Attach the routes_output and the logs to this issue.

scottyeager avatar Nov 14 '25 08:11 scottyeager