LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-29-2017, 08:12 AM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Rep: Reputation: Disabled
[Redhat 6.x] login to server very long


Hi all,

I have faced with the problem of login process to the Redhat server.
The login is still successful but it takes long time to log into the system.

My system is RedHat 6.7. As I check, Oracle database is installed on it.

How can we track what's happening at login process and which process causes the delay in this?

Regards,
Phat
 
Old 10-29-2017, 08:51 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,770

Rep: Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995
Quote:
Originally Posted by tranphat View Post
Hi all,
I have faced with the problem of login process to the Redhat server. The login is still successful but it takes long time to log into the system. My system is RedHat 6.7. As I check, Oracle database is installed on it. How can we track what's happening at login process and which process causes the delay in this?
Without knowing what you're talking about, there's little we can guess at. How are you logging in?? Over the network or at the console? Have there been any changes recently? Any updates? New server or old? Have you done ANY troubleshooting at all? Checked ANY logs?

Since you're using RHEL 6.7, have you contacted Red Hat support? You are PAYING for RHEL, right???
 
Old 10-29-2017, 10:32 AM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Without knowing what you're talking about, there's little we can guess at. How are you logging in?? Over the network or at the console? Have there been any changes recently? Any updates? New server or old? Have you done ANY troubleshooting at all? Checked ANY logs?

Since you're using RHEL 6.7, have you contacted Red Hat support? You are PAYING for RHEL, right???

Hi,

I login using the putty to the server over the network. With console, it's ok.
We using Redhat but no payment. no log file or hint found

Last edited by tranphat; 10-29-2017 at 10:39 AM.
 
Old 10-29-2017, 11:11 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,770

Rep: Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995
Quote:
Originally Posted by tranphat View Post
Hi,
I login using the putty to the server over the network. With console, it's ok. We using Redhat but no payment. no log file or hint found
Why are you not paying for RHEL?? Without paying, you **DO NOT** get patches/bug fixes/updates/security updates, and are doing nothing but causing yourself more problems. Pay for RHEL or load CentOS instead. And sorry, but there are MANY log files on RHEL; have you looked at NONE of them? Looked in /var/log yet? Do you get ANY messages via putty when logging in?

Without SOME sort of hint, there's no way of even guessing. Which is exactly why you pay for RHEL, so when such things occur, you call them and they walk you through things. And you were asked several questions in the first reply...which you have not answered. Again, without details, there is no way we can help you. You were asked:
  • Have there been any changes recently?
  • Any updates?
  • New server or old?
  • Have you done ANY troubleshooting at all?
  • Is this a new issue or has it been ongoing?

Last edited by TB0ne; 10-29-2017 at 11:12 AM.
 
Old 10-29-2017, 11:52 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,836

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
After login, do a
Code:
su - $USER
That does the 2nd half of a login.
If this is fast then the problem is in the first half of the login.
--
After login, run
Code:
strace -fp `pgrep -ox sshd`
Then do a 2nd putty/ssh login. You'll see all the system calls that happen during the login.
You can pause the output (and the login) with Ctrl-s, and resume with Ctrl-q
 
Old 10-29-2017, 12:44 PM   #6
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hello,

Regarding the payment, it's policy of company.
In this case, which log file we should take a look? as I have checked /var/log/message, no useful info there.

Please advise something else that I can check.

Have there been any changes recently? --> no changes recently
Any updates? --> no update
New server or old? --> this quite old, not new one.
Have you done ANY troubleshooting at all? --> I check log files in /var/log
Is this a new issue or has it been ongoing? --> I just experience with long delay when login. --> How can we trace the login process?
 
Old 10-29-2017, 02:11 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,770

Rep: Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995
Quote:
Originally Posted by tranphat View Post
Hello,
Regarding the payment, it's policy of company.
What 'policy' is that?? Not to pay for what you use??? Sorry, very bad excuse.
Quote:
In this case, which log file we should take a look? as I have checked /var/log/message, no useful info there.

Please advise something else that I can check.
No idea, since at this point you really haven't checked ANYTHING yet. There are LOTS of log files, messages is just one. Did you look at auth.log? And AGAIN, are there any messages that come up when logging in? Have you looked at running Putty with any options to enable logging?
https://www.ssh.com/ssh/putty/putty-.../Chapter3.html
Quote:
Have there been any changes recently? --> no changes recently
Any updates? --> no update
New server or old? --> this quite old, not new one.
Have you done ANY troubleshooting at all? --> I check log files in /var/log
Is this a new issue or has it been ongoing? --> I just experience with long delay when login. --> How can we trace the login process?
So your post is very confusing. If there have been no changes or updates, and this server has been in place a good while, then we can only assume that this has been an issue for a long time, right? Because if it hasn't, then there obviously **HAVE** been some changes recently.

The solution is here:
https://access.redhat.com/solutions/741883
 
Old 10-29-2017, 02:50 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
We using Redhat but no payment. no log file or hint found
seeing as this is 6.7 and missing 1+ YEARS worth of security updates

and missing 1+ years worth of KNOWN security patches


i can take a GUESS


see what your intrusion detection software has to say ( if using any )
i BET there is code that is not yours on the machine
 
1 members found this post helpful.
Old 10-29-2017, 02:51 PM   #9
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Yes, strace

Learning strace will help one understand Unix; here, the Unix login process.
The best way is what I call: the 'soft skill' of 'web-researching':
As a start, Put these 3 words into a Google.com search box: strace ssh login
Look at the -f -o strace switches, in: man strace
'wiki' is a good keyword to add to www-searches, like: wiki linux login process

(I'll refrain from OT wasted commentary on CEO/CIO/etc ethics&skills here.)
 
Old 10-29-2017, 03:16 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,793

Rep: Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951
Without knowing anything about your network, ssh slow login are sometimes due to either useDNS or GSSAPI options being enabled.
 
Old 10-29-2017, 03:20 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,770

Rep: Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995Reputation: 7995
Quote:
Originally Posted by michaelk View Post
Without knowing anything about your network, ssh slow login are sometimes due to either useDNS or GSSAPI options being enabled.
Exactly, and that's what's outlined in that RHEL document I looked up for the user. But as JohnVV pointed out, without a Red Hat subscription, they won't be able to access the article and the patches needed to make this work.
 
Old 10-29-2017, 03:34 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,793

Rep: Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951Reputation: 5951
True statement.

Quote:
Regarding the payment, it's policy of company.
I also agree it is bad policy but then we know nothing about your company.
 
Old 11-08-2017, 02:13 PM   #13
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Check your DNS resolving in /etc/resolv.conf
It is preferable empty /etc/resolv.conf than wrong servers in it.
 
Old 11-22-2017, 01:07 AM   #14
giis
Member
 
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
Can you try login via ssh ? Make sure you pass -vvv to display debugging message. It can give some hint if its related to network
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard is not working when user login to vnc server in redhat 4 anis123 Linux - Server 1 04-22-2013 01:26 AM
SSH : Takes a long time to login to a remote server TomCruise2002 Linux - Networking 8 12-04-2011 01:01 PM
local user login takes very long time if ldap server not available guna_pmk Linux - Server 2 03-18-2011 09:26 AM
SSH : Takes a long time to login to a remote server TomCruise2002 Linux - Enterprise 1 12-16-2005 06:58 PM
Very long boot and login silverback011 Mandriva 6 11-28-2004 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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