LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2002, 07:30 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
Slow login question


Hi,

Running 7.1 and I'm getting very slow logins to ssh, procmail and ftp. However, once I'm logged in, the connection on all three services is very fast.

Any suggestions on what can be adjusted to help with login speed of username password.

Thanks.
 
Old 02-26-2002, 05:04 PM   #2
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
Without more info about the system, I'm going to assume (ugg).
My first guess w/ be to check your dns mechanism. Those services will try to reverse lookup your IP for security reasons. If it can't resolve it, it'll still let you in. But, you wait while your server eventually times out.

Try this. Enter the IP + host name of one of the clients into the /etc/hosts file of the ssh/ftp/mail server. Then, try to connect to one of those services using that same client.. if it works you should see a big difference in time it takes to login to your server.

Last edited by Jon-; 02-26-2002 at 05:10 PM.
 
Old 02-26-2002, 09:00 PM   #3
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I forgot to mention that I am connecting to the Linux server from a Windows machine. Does the DNS still apply?

Thanks
 
Old 02-27-2002, 11:07 AM   #4
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
Yup -- the Linux box doesn't really know that. It just sees a telnet client, or an ftp client. And, this is how you want it. You want the security measures to be applied to all platforms -- you don't want to assume that one is safer than the other.

Jon
 
Old 02-28-2002, 11:44 PM   #5
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I have checked all my DNS files:
/etc/named.d
/etc/<ip reversed>.rev

...and all seems well.

What do you mean by:

"Enter the IP + host name of one of the clients into the /etc/hosts file of the ssh/ftp/mail server.

...can you be more specific?

Order do you have any other suggestions.

Thanks
 
Old 03-01-2002, 09:54 AM   #6
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
Before you get too involved in DNS server configuration, let's just use the hosts file and I'll give you a pretty basic example.

You have 2 machines, we'll call client and server. Let's just say client is 192.168.1.1 and server is 192.168.1.2. You do NOTHING on the client. On the server, you edit the /etc/hosts file. Inside, you'll add:

192.168.1.1 client.domainname.com client
192.168.1.2 server.domainname.com server

Leave the other stuff alone. If you haven't changed anything in your /etc/nsswitch.conf file on your server then this should fix the problem.

That is it. No reboot/restart. Just try to login.

Last edited by Jon-; 03-01-2002 at 10:09 AM.
 
Old 10-06-2005, 12:02 PM   #7
fenderman11111
Member
 
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121

Rep: Reputation: 15
Just in case anyone is still having this problem... If you're running Ubuntu Hoary, then you probably will be.

you can add this line to the file /etc/ssh/sshd_config :

UseDNS no

This is especially helpful if you happen to be using DHCP to configure your hosts.

The only problem is, it might be a security risk if your ssh server is exposed to the internet. The risks are, as always, yours to weigh.

-Brandon
 
  


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
the login box is slow to appear damienduff Debian 2 06-26-2005 03:09 AM
SSH slow login dcass Linux - Software 2 02-16-2005 02:16 AM
ftp login slow neil Linux - Security 13 10-05-2004 09:47 AM
Slow login Haiyadragon Linux - General 2 09-03-2004 02:08 AM
NIS-slow-login kjelle Linux - Networking 1 03-26-2002 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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