SSH slow but apache isn't?
I am running a server on Ubuntu 14.04.1 LTS. I can connect to it with 30ms both through the DNS and direct IP. I can also visit the webpage it hosts using apache2, and load it quickly, which means the server is running and it's not a server lag problem. When i connect to SSH or SFTP however, it takes about 15 seconds for it to register the keys i pressed. I have made sure the client ip is in the /etc/hosts file. I have changed options in the /etc/ssh/ssh_config and /etc/ssh/ssdh_config files, and still no luck. It started doing this right after we updated the server to fix an oops error it was having about 3 minutes after boot(again, ssh would be broken, but apache would stay running even with the oops error) Does anyone know how to fix this?
EDIT: just checked, the ssh is slow even over lan, not just over internet, so it must be a problem with the ssh service itself(at least that's how i see it) |
Hi There
It sounds like a DNS problem to me If you put your own IP address you are connecting from, inside the server /etc/hosts file you are making a SSH connection to, is that better ? |
I don't think you fully read my question, both the ip of the server and the ip of the client are in the /etc/hosts file. Also this problem fixed itself for about half an hour last night then started again and we don't know what caused it.
|
turned out to be a weird hardware problem, seems to be fixed after replacing internet card.
|
All times are GMT -5. The time now is 08:09 AM. |