Login delay after entering id (40 secs) same after entering pw


 
Thread Tools Search this Thread
Operating Systems Solaris Login delay after entering id (40 secs) same after entering pw
# 8  
Old 01-23-2012
Well, if you have root access on the server you can truss the running sshd process and see what's hanging:

Code:
truss -f -d -vall -o /output/file/name -p PID

Where PID is the process id of the sshd process that's actually listening on port 22. It'll probably be the only one with a parent PID of 1 in the global zone. Just make sure the output file name is to a secure path because the file it generates will capture everything.

That will show you where the hang is happening. But you need root access and you'll need to dig through the output file to find it. If you can, tail the file while you're logging in to see the timeout as it rolls by and see what to look for.

Just a guess, but is your remote host listed in the host file in the local zone, but not in the global zone? Or are there differences in the nameservers used for DNS lookups? You can try doing an nslookup on your remote host's IP address in both zones.
This User Gave Thanks to achenle For This Post:
# 9  
Old 02-07-2012
Solution

OK so, for posterity, the solution was:

- no /etc/hostname.xxx file - when the machine was first installed it could not get on to the network due to switch/router config, so this file was not created. This meant that after reboot the network was not up and required setting up again
- incorrectly configured hosts file - the host name was against the local loopback address, so the network service could not match the network card to the IP address.

This meant that when UseDNS=no was set in /etc/ssh/sshd_config it just hung ssh. Once the above issues were resolved, adding UseDNS=no then did sort out the long hangs since we do not have DNS ports and servers running on our back-end DB server subnets.

I did try trussing the process as suggested, achenle, and I saw the process hanging on door_calls, but this didn't tell me much in this case, as it was indeed reverse DNS lookups which were causing the problem.

Moral?: re-check your basic config files and get your colleagues to check them if they look OK to you! Thanks all for your help and suggestions.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Sendmail delay: 3 mins 11 secs... Every time.

Hi all, I would like some help with a sendmail problem: We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3 All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)
Discussion started by: Mysturji
11 Replies

2. UNIX for Dummies Questions & Answers

Entering a newline into a header in awk

I want to create a header with awk like this: gawk 'BEGIN {print "List of Events"} Desired output: List of Events Tennis Baseball But I am at a loss on how to do this. I can make a list like this: List of Events Tennis Baseball But I can't get a space to appear. I have... (4 Replies)
Discussion started by: newbie2010
4 Replies

3. Solaris

Not getting command prompt after entering the login password

Hi All, I am not able to get the command prompt after entering the login password on solaris server Only access is through console. Server type : sun4u sparc SUNW,Netra-T12 bsnl-north-in > ssh 10.147.17.207 jtoin Connecting to 10.147.17.207 as user jtoin Password: Last login: Wed Mar 5... (1 Reply)
Discussion started by: sandeep_kmehra
1 Replies

4. Shell Programming and Scripting

Entering into C shell remotely

Hi All, I want to enter into C shell from Ksh remotely. I have written code like, remsh $rHost -l $rUser -n "source $RM_HOME/run_time/.set_env.csh; jar -xvf $package.$extension" But it says; ksh: source : not found ksh: jar : not found Can anyone help me? Thanks. (1 Reply)
Discussion started by: AB10
1 Replies

5. UNIX Desktop Questions & Answers

Why can't I save a VI file after entering data?

Hi I am new to linux, when I typed "vi FILE1" I was able to open VI editor. I added some data and I want to save the file and I tried :w but it threw me an error. "file1" E212: Can't open file for writing Press ENTER or type command to continue why I am not able to save it? I read it... (16 Replies)
Discussion started by: chinnanji
16 Replies

6. Shell Programming and Scripting

Entering parameter automatically

First of all thank you for your replies to my earlier difficulties. Now I am facing another difficulty. I have written following “for” loop. For var in `find . -name “2008_reports*”` Do Gpg -symmetric ${var} Done When I use this loop it asks to enter pass phrase every time. Is there any... (7 Replies)
Discussion started by: anushree.a
7 Replies

7. Shell Programming and Scripting

Entering in to recent created folder

Hi, I had problem I have a script after each run, which creates a new folder under "testrun", I used to find recent createfolder by using ls -ltr in testrun folder. Is there any script which facilitates, going directly to recent createfolder under "testrun":confused: Plz help.. (7 Replies)
Discussion started by: prasad2k.java
7 Replies

8. Shell Programming and Scripting

How to find entering ENTER key?.

Hello All, i have a script to get input from the user like bellow, read -p "Do you want to continue (y/n) : " status i want to identify the pressing of Enter Key with out giving any value for the above statement and i want get the status if we press Enter key during run time. How to... (0 Replies)
Discussion started by: tsaravanan
0 Replies

9. Shell Programming and Scripting

Entering secret password

Hello All, I am trying to write a script when executed, asks you for the password, and confirm password; it should save to a file and also entered password should not be in clear text on the console - should be as **** Can somebody give me direction in writing this in shell? Thanks Chiru (4 Replies)
Discussion started by: chiru_h
4 Replies

10. UNIX for Dummies Questions & Answers

entering a long command

hello everyone! Very basic question for the guru's in here but anyways, I am trying to type a command that is longer than the line. What character do I use to continue my command on the next line? Thanks in advance.... Todd (1 Reply)
Discussion started by: hedrict
1 Replies
Login or Register to Ask a Question