LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SSH slow but apache isn't? (https://www.linuxquestions.org/questions/linux-software-2/ssh-slow-but-apache-isnt-4175526630/)

jonjetjon 11-26-2014 06:33 PM

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)

linuxgurusa 11-27-2014 03:32 AM

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 ?

jonjetjon 11-27-2014 12:27 PM

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.

jonjetjon 12-01-2014 04:46 PM

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.