Why does my SSH connection lag when typing?

Solution 1:

You are not alone with this problem. I have experienced it a great deal myself. While I am not expert nor have much proof, I believe the problem is due to the way ssh was programmed. A very similar tool, mosh, does most things that ssh does while eliminating lag and adding other features. However, you will most likely have to install this on both your pc and server for it to work. I hope this will help you.