LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2006, 12:29 PM   #1
afgs_uk
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Rep: Reputation: 0
Password prompt takes 20 seconds to display after login


Hi all,

I just set up a brand new FTP server using vsftpd on Fedora Core 6. (zod)

However, when I login remotely (ssh or ftp) it takes about 20 seconds from the login prompt, for the password prompt to appear.

Once connected the speed is fine, I can upload and download files as fast as if the pc was next to me in the office.

Does anyone know what might be causing this huge delay before I'm prompted for a password (except high network traffic, I've tested this with other machines)

Thanks in advance!

Alex
 
Old 11-08-2006, 05:13 PM   #2
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Rep: Reputation: 15
Hi

I was having a similar problem under Debian Sarge, although it only affected SSH. When logging in, it prompted for the username almost instantly, but there was a 10 second delay before asking for the passsword. I came across this http://lists.netisland.net/archives/.../msg00165.html, and doing as it suggests (ie. adding the box I was connecting from to /etc/hosts) resulted in no delay.

Not sure if that's the problem here, but that might be a place to start.

1337_penguin
 
Old 11-09-2006, 11:47 AM   #3
afgs_uk
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Lightbulb Fixed! - explanation below

Thanks, I can see how that makes perfect sense, I actually fixed it by putting a dns server address in /etc/resolv.conf. ( I didn't have one originally because I didn't think I'd need DNS for anything as it's only accessed from the outside for FTP.
 
Old 11-09-2006, 06:31 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Usually this is a DNS issue, reverse DNS issue that is. Setting up proper DNS or adding the hosts in /etc/hosts will fix this problem.
 
Old 12-06-2006, 10:56 PM   #5
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
How does one go about ensuring that the proper DNS directions are set up on a machine, so that this SSH thing will not wait to time out? I have this same problem. I mean the format of entries in /etc/hosts

Thanks.
 
Old 12-07-2006, 11:04 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by student04
How does one go about ensuring that the proper DNS directions are set up on a machine, so that this SSH thing will not wait to time out? I have this same problem. I mean the format of entries in /etc/hosts

Thanks.
/etc/hosts format is as follows:

Code:
IPAddress    hostname.domainname hostname
 
Old 12-07-2006, 11:13 PM   #7
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Thanks! It's with no delay now.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I customise my login to avoid prompt for user and password? krmane Slackware 6 07-13-2006 11:35 AM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 12:01 PM
no password prompt after root login taboo Linux - General 1 12-22-2003 02:01 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 02:47 PM
Login password prompt stops working? rickbb Linux - General 4 09-27-2000 10:13 AM

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

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