LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-13-2008, 06:21 PM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
Slowness when SSHing and SCPing?


After I put my new router in (Linksys WRT54GL), my Centos 5 pc is very slow to connect when I SCP or SSH somewhere. Or when I ssh into it from my xp box. It seems fast enough after I connect, but the initial connection takes around 10 seconds or so. It used to just be like instant.
 
Old 03-13-2008, 07:30 PM   #2
tgreaser
LQ Newbie
 
Registered: Feb 2007
Location: Morgantown, WV
Distribution: RedHat, Fedora
Posts: 24

Rep: Reputation: 16
try this ..
im guessing they are on the same subnet right ?
ping centos ip address then ssh to your centos box
Is it faster now ?
 
Old 03-14-2008, 02:21 PM   #3
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Pinging 192.168.1.120 with 32 bytes of data:

Reply from 192.168.1.120: bytes=32 time<1ms TTL=64
Reply from 192.168.1.120: bytes=32 time<1ms TTL=64
Reply from 192.168.1.120: bytes=32 time<1ms TTL=64
Reply from 192.168.1.120: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.1.120:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

It might be a little faster sshing into it now, but once I'm logged in to the centos box, and I try to ssh out to a remote server, it's still very slow to connect.
 
Old 03-14-2008, 04:42 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What's the layout of the network we're talking about, is that
router also the DNS & DHCP server for that network? Has the
Centos box (if it uses DHCP) received a new lease since the
swap?



Cheers,
Tink
 
Old 03-14-2008, 05:41 PM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
try to remove extra nameservers from resolv.conf its the culprit at most.
 
Old 03-15-2008, 11:37 PM   #6
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
I changed my DNS servers and restarted and it works! I think what happened is, when I put the new router in I got a new IP address. And the IP was on a different whateveritscalled- you know, the first numbers of the four sets of numbers, was different. So I used the same DNS servers that my windows box automatically got and now it's faster again.
 
Old 03-17-2008, 10:14 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Slow ssh prompts are usually the cause of poor reverse DNS.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotplug slowness elyk Slackware 8 01-09-2006 05:46 PM
slowness Britten Ubuntu 3 11-27-2005 04:15 AM
sshing questions bluknight43 Linux - Newbie 1 02-12-2005 09:06 PM
color xterm when sshing into another machine...? clockworks Linux - General 0 01-19-2004 08:24 AM
Problems sshing into box Ripshred Linux - Networking 2 11-08-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:27 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