- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Long Delay After Password During ssh Login
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 11:12 AM
тАО04-04-2011 11:12 AM
11.31 servers. Running Centrify but my account is excluded from it. Telnet shows no delay.
DNS appears to be configured correctly and reverse lookups of the box I'm coming from show no delay or issue.
ssh -vv hostname doesn't show any issue at all. Lots of "it worked".
I tried setting "UseDNS no" in the sshd_config, didn't help.
Any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 11:25 AM
тАО04-04-2011 11:25 AM
Re: Long Delay After Password During ssh Login
Server being logged into needs an /etc/hosts entry for itself. This takes DNS delay out of the equation.
This is a pretty common problem with HP-UX.
If the inbound server is hostname stevesvr and its ip address is 192.168.0.20 an /etc/hosts entry like:
192.168.0.20 stevesvr stevesvr.yourdomain.com
Will do the trick.
The assumption here is /etc/nsswitch.conf is configured to look at files first. That is industry standard.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 11:32 AM
тАО04-04-2011 11:32 AM
Re: Long Delay After Password During ssh Login
# grep b201u005 /etc/hosts
10.10.240.72 b201u005 b201u005.bg.na.jci.com
# ifconfig lan0
lan0: flags=1843
inet 10.10.240.72 netmask ffffffe0 broadcast 10.10.240.95
/etc/nsswitch.conf is set to hosts: files dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 12:48 PM
тАО04-04-2011 12:48 PM
Re: Long Delay After Password During ssh Login
Authentication succeeded (password).
message or before ?
Assuming it happens after, what I would suggest is to put
set -x
line to the beginning of your .profile and .kshrc (assuming you are running ksh, if not, modify accordingly) and try to figure out where the hang-up is.
don't forget the
set +x at the end of each file as well
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 09:32 PM
тАО04-04-2011 09:32 PM
Re: Long Delay After Password During ssh Login
Please check and report the size of /var/adm/wtmps file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 09:47 PM
тАО04-04-2011 09:47 PM
Re: Long Delay After Password During ssh Login
If those files have been modified since sshd was started, it is likely sshd is still using the old values.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 10:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2011 11:02 PM
тАО04-04-2011 11:02 PM
Re: Long Delay After Password During ssh Login
The same i asked to check. This will resolve the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 04:47 AM
тАО04-05-2011 04:47 AM
Re: Long Delay After Password During ssh Login
b201u005:/var/adm > ll *tmps
-rw------- 1 root other 45637392 Apr 4 09:45 btmps
-rw-rw-r-- 1 adm adm 993000564 Apr 5 07:45 wtmps
I'm curious though, why would they affect ssh but not telnet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 05:02 AM
тАО04-05-2011 05:02 AM
Re: Long Delay After Password During ssh Login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 05:18 AM
тАО04-05-2011 05:18 AM
Re: Long Delay After Password During ssh Login
> Lee: wtmps is for SSH / SFTP / SCP and wtmp is for telnet / FTP. Likewise the bad login files, btmps = SSH & btmp = telnet.
No, the files without the "s" at the end are the older versions with only a very short login name character array and a very short hostname character array. These files are to be replaced by their cousins with the "s". Compare the manpage documentation of 'utmp(4)" to 'utmps(4)'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 05:38 AM
тАО04-05-2011 05:38 AM
Re: Long Delay After Password During ssh Login
Solution:
Trim it down and your issue will be fixed.
dd if=/var/adm/wtmps |gzip >/somewhere/wtmps.gzip
cp /dev/null /var/adm/wtmps
Try your SSH to the server -- it will NOW be fast.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 05:39 AM
тАО04-05-2011 05:39 AM
Re: Long Delay After Password During ssh Login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2018 04:00 AM
тАО09-27-2018 04:00 AM
Re: Long Delay After Password During ssh Login
I know this is an old thread, but, thank you for this solution.
It has helped me tremendously today with an end user having all sorts of connection issues from an app.