Typing in putty over ssh is very laggy

so when I ssh on a fresh install the typing lags a lot. I cant seem to find a solution.
Edit: I am using debian via sd card

try to disable ps mode:

It kind of fixed the typing lag but it is still 100ms latency. If you dont mind me asking what is your latency if you ping 8.8.8.8. Also it does not lag when I am using it via hdmi. Only lags with ssh