Recently, after reinstalling Raspian on the RaspberryPi, I had the problem that SSH access was painfully slow. Mostly you could enter the user name and the password still “normal fast”, but then it often took up to ten minutes until the usual welcome message was displayed.
To solve this problem the following solution helped.
Hints for our lovely english readers: Basically, many of the articles on Nerdiy.de are translations from the original german articles. Therefore, it may happen here and there that some illustrations are not available in english and that some translations are weird/strange/full of mistakes or generally totaly wrong. So if you find some obvious (or also not obvious) mistakes don't hesitate to leave us a hint about that in the comment section.
Also please don't get confused, that instead of a "dot" often a "comma" is used as decimal separator. 🙂
I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/sicherheitshinweise/
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, Nerdiy.de receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂
Before you start with this article, you should have prepared the RaspberryPi so far that it can be reached via the network and controlled by SSH.
In the following list you will find all the parts you need to implement this article.
Log in via SSH on the RaspberryPi
To get started, you first need to log in to RasPi with SSH on Putty. How to do it is described in the article
Change IPQoS value
This change fixes the error that the SSH connection to your RaspberryPi becomes so slow after entering username and password that console operation is no longer possible.
This error only occurs when you access the RaspberryPi over a wireless network. It should not occur with a cable connection.
To fix it you have to enter a command/value change in two configuration files of your SSH client.
Open the first configuration file through the following command:
sudo nano /etc/ssh/ssh_config
The same repeats again with the other configuration file. Open it with:
sudo nano /etc/ssh/sshd_config
… and insert the value change “IPQoS 0x00” there. Save and close the file with “CTRL + X” and “Y” to confirm. After a restart of the RaspberryPi (command “sudo reboot”), your console connection should be as fast as usual.
Change value using a single command
“Kveldulfur” left a note in the comments that sometimes you don’t even have the opportunity to navigate to the setting of the value. In this case, the value can also be set correctly with just one command. Just enter the following command.
echo „IPQoS 0X00“ >> /etc/ssh/ssh_config && echo „IPQoS 0X00“ >> /etc/ssh/sshd_config
Then restart your RaspberryPi and the console should now react faster.
I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂