Search code examples
sshraspberry-pitmux

Raspberry Pi SSH lag slowness


I am experiencing issues with the Pi, when I try to work on the Pi trough SSH I suddenly get lageness. At the beginning it works fine, but intermittently the auto-complete or commands on the history take a long time to load and that affects the typing.

How can I find out what is doing this?


Solution

  • Reading around I found that could be an issue with network, the SD card R/W speeds or even the SSH configuration itself, nothing that I tried of what I found around worked for me which was quite disappointing.

    I don't know which the problem was exactly on my case.

    I found a solution for me thanks to that several time my SSH session dropped an this is particularly painful If on the middle of running a command, so i decided to look for a way to keep session alive independently I found tmux. Which no only allowed me to keep session alive but it improved my ssh response, I read that mosh would do the same but I decided to go with tmux which work perfectly for me.