LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2014, 06:33 PM   #1
jonjetjon
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Rep: Reputation: Disabled
Exclamation 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)

Last edited by jonjetjon; 11-26-2014 at 07:56 PM. Reason: new information
 
Old 11-27-2014, 03:32 AM   #2
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
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 ?
 
Old 11-27-2014, 12:27 PM   #3
jonjetjon
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-01-2014, 04:46 PM   #4
jonjetjon
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
turned out to be a weird hardware problem, seems to be fixed after replacing internet card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache/SSH on linux is slow.... oberonix Linux - Networking 2 10-02-2004 03:13 AM
Xine says sysem too slow: It isn't Draylath Linux - Newbie 1 08-30-2004 04:48 PM
KDE VERY slow (and other thread advice isn't working) smith847be Linux - Software 7 06-08-2004 02:21 PM
Mandrake 9.1 SLOW after panel loads, it isn't my systems specs Tw3NTy0n3 Linux - Newbie 13 07-07-2003 04:17 AM
Mandrake 9.1 SLOW after panel loads, it isn't my systems specs Tw3NTy0n3 Linux - General 2 07-01-2003 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration