LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2009, 03:03 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102
Question SSH problem - unable to login at times


Hi All,

I gave a interview yesterday. I did well on all files / server configuration etc.

I could not answer few questions, one of them is :-


Quest We are trying to login to server B from A. Sometimes we are able to login and sometimes we are not. For e.g. I logged on to this server, and after 5 minutes when I tried logging in again, I was unable to login.
Note: Login prompt is coming every time, there is no network problem.
How will you trouble shoot this problem.



Pls help me with this.

Thanks in advance.
 
Old 02-26-2009, 03:15 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 37
You would check the log files on the system from the console.
 
Old 02-26-2009, 03:17 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Well in answer to the actual question, I would check the messages and secure and establish how the authentication back end is working. If it's more complex than local files, e.g. an ldap server are there issues in querying those. Clearly the network is ok if the prompt is coming up. I would clarify what unable means. there is no mention of error messages or precise behaviour.

TBH I can't think of a good reason likely to be behind this myself... That's not actually what they've asked though.
 
Old 02-26-2009, 03:45 PM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Even, I told them I would check configuration and log files, but I guess they were looking for some other answer.
 
Old 02-26-2009, 04:04 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
MaxStartups too low? There's no comment on how many other people use ssh to this box...
 
Old 02-26-2009, 04:54 PM   #6
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
Server load could be an issue, but that's probably too accidentally to be part of a quiz.

A more esoteric explanation would be that some firewall rule restricts SSH access from the same IP address within a give time range. This is usually done to avoid automated attacks, though it's unusual to set this time range to 5 minutes or more in such a context.

A rather theoretical concept would consider a server setting that allows only one login for any user at a given time. I wouldn't know how to do something like that on a server, but it's not a bad idea for a security-obsessed system administrator.

linux

Last edited by gergely89; 02-27-2009 at 11:06 PM.
 
Old 02-28-2009, 07:14 AM   #7
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Well, to summarize I can now think of these reasons:

- Maximum no. remote logins reached
- Server Load
- Authentication files
 
  


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
I am unable to exit my script that uses ssh to login to a remote server jtbinuya Linux - Newbie 2 06-12-2008 10:17 PM
Unable to login via console or SSH predatorz Fedora 8 01-07-2008 12:17 AM
Unable to login via console or SSH predatorz Linux - General 3 01-05-2008 07:23 AM
vsftpd user login times problem er_gaurav22 Linux - Server 1 07-13-2007 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration