mycelium
mycelium copied to clipboard
SSH connection over Mycelium network becomes unstable after some time
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:
- Start Mycelium on two machines and connect them via public or private nodes.
- Establish an SSH session between the two machines over the Mycelium network.
- Keep the SSH session active for a while (e.g., several minutes).
- Observe that the SSH connection becomes unresponsive or disconnects.
- 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
Let's do the following to collect info that will be helpful for debugging this:
- Enable debug logging for local mycelium (add
-din the systemd service) - At the time of connection difficulty, collect outputs from the following commands:
mycelium routes selectedmycelium routes fallbackmycelium routes queriedmycelium 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.