I'm having issues with a series of GNU/Linux industrial devices that I connect to via SSH. The configuration is very basic, as I haven't made any changes to the server, and on the client side, I only have the following configuration in .ssh/config
:
Host <hostname>
User <username>
Port <port>
The problem I'm facing is that whenever I execute commands that generate a large amount of output, such as ls with a long result, apt upgrade, or cat on a large file, the SSH connection becomes unresponsive and doesn't do anything. It seems to get stuck or freeze.
I'm not sure what could be causing this issue. Could it be related to the SSH configuration or some other factor? Any help or suggestions would be greatly appreciated.
It seems to be a problem with the network where the SSH server is located since other devices, with the same configuration, don't have any issues. However, I don't have access or permission to modify the network; I only have control over my own server. Is there a way to limit the server's resources in order to improve accessibility and performance while working with it?
trickle
- it allows limiting bandwidth within the userspace. A possible application cna be found in this answer.trickle
may be run as a deamon. – FelixJN May 26 '23 at 11:08UseDNS no
whichdoesn't delay ssh. – admstg May 26 '23 at 13:18