Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-24-2002, 07:30 PM
|
#1
|
Member
Registered: Jun 2001
Distribution: FC4
Posts: 136
Rep:
|
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.
|
|
|
02-26-2002, 05:04 PM
|
#2
|
Member
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91
Rep:
|
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.
|
|
|
02-26-2002, 09:00 PM
|
#3
|
Member
Registered: Jun 2001
Distribution: FC4
Posts: 136
Original Poster
Rep:
|
I forgot to mention that I am connecting to the Linux server from a Windows machine. Does the DNS still apply?
Thanks
|
|
|
02-27-2002, 11:07 AM
|
#4
|
Member
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91
Rep:
|
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
|
|
|
02-28-2002, 11:44 PM
|
#5
|
Member
Registered: Jun 2001
Distribution: FC4
Posts: 136
Original Poster
Rep:
|
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
|
|
|
03-01-2002, 09:54 AM
|
#6
|
Member
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91
Rep:
|
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.
|
|
|
10-06-2005, 12:02 PM
|
#7
|
Member
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|