sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

sshcode disconnects and locks up terminal

Open fonnesbeck opened this issue 5 years ago • 8 comments

Using the current version of sshcode built from source (--version does not reveal the version number), I am getting frequent unrecoverable disconnections despite having a strong connection (50MBps+). Clicking on reconnect in the popup never reconnects, and moreover, the local terminal from which I am connecting locks up and must be manually closed. I've gotten this behavior multiple times now on multiple different network connections, so I am satisfied the network is not the issue.

The remote session I am connecting to is a GCS VM instance, which I use reliably for other remote computing tasks (e.g. Jupyter notebook hosting).

fonnesbeck avatar Dec 19 '19 18:12 fonnesbeck

How did you install? What is the Host OS? Your shell? your terminal?

Merith-TK avatar Dec 20 '19 04:12 Merith-TK

HostOS: Debian Linux Shell: zsh Terminal: xterm

As I said above, I installed it from source.

fonnesbeck avatar Dec 20 '19 17:12 fonnesbeck

I noticed similar behavior using my KVM instance (on my homelab server) running Ubuntu, when I dug into it a bit I came to the conclusion my other running tasks were actually the cause; I upped the memory on my VM and it was resolved (currently my VM has 5GB of memory allocated to it; not much all things considered).

IngCr3at1on avatar Dec 27 '19 17:12 IngCr3at1on

Thanks. I have not had this happen recently, so it sounds like a likely cause. I will close this.

fonnesbeck avatar Dec 27 '19 18:12 fonnesbeck

I'm going to reopen this. Though my terminal no longer locks up, I still get frequent disconnections. This has nothing to do with my network connection, as I am on a fast Google Fiber wired connection. It never stays connected for more than 10-15 min, and when it disconnects it never successfully reconnects.

fonnesbeck avatar Dec 31 '19 01:12 fonnesbeck

Is your connection stable? I used my Cell data multiple times over a VPN and can retain a connection for upwards of three hours

Merith-TK avatar Dec 31 '19 01:12 Merith-TK

It is a stable connection, as I am frequently using remote Jupyter (Python) sessions to the same GCS VM instance and they do not disconnect. Perhaps it has something to do with the Python extension in VS Code? Not sure.

fonnesbeck avatar Dec 31 '19 02:12 fonnesbeck

it is probably the direct connection to the server via SSH,

try using plain SSH for a bit, see if issues arise. If so it is the connection between client and server.

Merith-TK avatar Dec 31 '19 02:12 Merith-TK