You are not logged in.

#1 2015-05-16 15:30:27

eric
Member
From: under heaven
Registered: 2004-02-11
Posts: 118

[SOLVED] Keypress in SSH not sent immediately unless reloading webpage

Since a month or so, I have a VPS-server that I use as my own private cloud server.
I use SSH to connect to this server for shell access and file transfers (sftp and scp).

Sometimes a keypress on the local keyboard takes a long time before it is sent to the server and become visible on the local display (the console or a window on the desktop). In the worst situation this can even take longer than 20 seconds.
The same happens when transferring files. Sometimes a file takes a very long time before it is transferred.

I've noticed that when this happens, reloading a webpage once or twice helps. The webpage doesn't have to be on the same server as the one SSH is connected to. Yes, it was me who generated a lot of pageviews on Archlinux' Wiki wink
It looks as if my computer, router of maybe the wifi-module is temporary blocking the SSH-traffic waiting for more traffic.
The SSH-connection is also not disconnected, because I am not asked to reauthenticate with a password and/or public key.

The trick I'm using now (and which works well), is listening to an online radio station while I'm doing something through an SSH-connection to this server.
This is of course a workaround and I'm looking for a real solution.

Last edited by eric (2015-05-24 00:22:48)

Offline

#2 2015-05-16 16:12:37

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Keypress in SSH not sent immediately unless reloading webpage

Do you have ssh access to some other server? If yes, then see if the behaviour can be replicated there. Alternatively, try accessing a machine on your LAN using ssh.

Offline

#3 2015-05-23 13:52:26

eric
Member
From: under heaven
Registered: 2004-02-11
Posts: 118

Re: [SOLVED] Keypress in SSH not sent immediately unless reloading webpage

x33a wrote:

Do you have ssh access to some other server? If yes, then see if the behaviour can be replicated there. Alternatively, try accessing a machine on your LAN using ssh.

I see the same issue after opening an SSH-connection to my Android phone connected to the same home router. Also downloading a 22MB file to the phone from the desktop is slow or will stall after 20% or so.

After some trial and error, it turned out that some bitrates were causing the slow or stalling download and probably also the SSH-issue of the first posting. I have set the WiFi-connection of the desktop computer to only use the good bitrates with the command

iw wlan0 set bitrates legacy-2.4 [bitrates]

(using 'iwconfig wlan0 rate [bitrate] fixed' may also be possible) and have not see this SSH-issue since.

So it looks like a WiFi-issue (instead of an SSH-issue) during downloads from my computer. I probably never noticed this issue because if I download it's almost always downloading TO my computer.

Thanks for the help smile

Last edited by eric (2015-05-23 14:06:40)

Offline

#4 2015-05-23 14:33:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,615
Website

Re: [SOLVED] Keypress in SSH not sent immediately unless reloading webpage

Please don't use "CLOSED" in the topic title -- this is used when a topic is locked. Use "SOLVED" instead.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB