- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh pseudo-terminal allocation
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
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
тАО03-23-2011 10:30 AM
тАО03-23-2011 10:30 AM
I have ssh connexion issues on a HP-UX 11iv3 server. When connecting to this server, I have huge delays after password validation. I've verified and setup DNS correctly. But from anywhere, even from the server itself an ssh connection to this server takes lots of time. Once connected, usage is at normal speed. I've noticed that when I don't allocate a pseudo terminal (for instance by submiting command on ssh command line) connexion is not slow. So... where does this strange issue comes from ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2011 12:20 PM
тАО03-23-2011 12:20 PM
Solutiondo some timex on each command and/or write a script to process them.
I typically see the last command slowing things down due to a large /var/adm/wtmp* files.
or just clean out your wtmp and login again to see if that is the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2011 11:12 PM
тАО03-23-2011 11:12 PM
Re: ssh pseudo-terminal allocation
> correctly. [...]
Your opinion, while interesting, has a value
which is uncertain, because only you know how
you set up and/or verified anything. Many
people who have the usual DNS problem make
the same claim, and they're wrong.
A Forum search for, say,
slow ssh
or
slow telnet
(or similar) should find many old threads
which would illustrate this.
However, if you can get a prompt result from
a command like the following, when it's run
on the server, then you may be right, and the
problem may lie elsewhere.
nslookup
But trusting the opinions of people who ask
questions here, and who offer no evidence to
support those opinions, is often a mistake.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2011 01:45 AM
тАО03-24-2011 01:45 AM
Re: ssh pseudo-terminal allocation
You're right that I haven't been precise enough. I've been solving this exact problem of DNS with many people telling me it was configured.
I have nslookup working on both servers for resolution and reverse. It wasn't the case when I got on that case, but now it works. But ssh is still slow and that's why I came here. I'm truly sorry I haven't been more explicit about that.
Problem with forums (or support in general) is always that you don't exactly know what level of knowledge others have and what they really have done.
I will try Tim's proposition which seems particularly interesting and I'll give feed back.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2011 02:42 AM
тАО03-24-2011 02:42 AM
Re: ssh pseudo-terminal allocation
"last" is part of the commands. "timex last" returns
real 5:55.78
user 3.58
sys 8.49
and "du -k /var/adm/wtmps"
706728 /var/adm/wtmps
I have trimed /var/adm/wtmps and now connection has no delay.
Thanks again,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2011 02:43 AM
тАО03-24-2011 02:43 AM
Re: ssh pseudo-terminal allocation
/usr/lib/acct/fwtmp -X /var/adm/wtmps.20110324
tail -100 /var/adm/wtmps.20110324 > /var/adm/wtmps.20110324.new
/usr/lib/acct/fwtmp -icX < /var/adm/wtmps.20110324.new > /var/adm/wtmps
gzip -9 /var/adm/wtmps.20110324
rm /var/adm/wtmps.20110324.new
Thanks again to Tim
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2011 08:54 AM
тАО03-24-2011 08:54 AM
Re: ssh pseudo-terminal allocation
you could also comment out that line in the prng file.. or change it to last -100 or something to keep it from happening again down the road.
i believe this is used for encryption entropy, to simply generate cpu randomness.
there are probably better ways but sometimes it is not worth the extra effort.
glad I could help.