- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH very slow
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
Forums
Discussions
Discussions
Discussions
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
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-14-2003 06:34 AM
04-14-2003 06:34 AM
I am trying to get SSH working
Currently I installed T1471AA (Version A.03.10.002), but when issuing "ssh
When using rlogin or rcp, I have no performance issue at all. It's very clear that ssh is waiting for something, Ones I entered my password evrything works on normal speed again.
I just installed this package so there might be somethin I forgot ?
Any help will be much apreciated !!
Regs David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:41 AM
04-14-2003 06:41 AM
Re: SSH very slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:48 AM
04-14-2003 06:48 AM
Re: SSH very slow
Nope everything is at normal speed. It's not DNS, it's just ssh that waits a very long time before it prompts for your password.
A "tusc" is attached.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:52 AM
04-14-2003 06:52 AM
Re: SSH very slow
Attachment looks very bad. Retry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 07:49 AM
04-14-2003 07:49 AM
Re: SSH very slow
Basically, HPUX 11.0 and earlier has to use an executable to generate a random number as part of the key pair encryption algorhythm. Beginning with HPUX 11i and later, there is a /dev/random which significantly speeds up this process. Connecting between two 11i boxes is very fast: sub-second response time across a gigabit connection between two fast computers. If HPux 11.0 is on either side of that connection, the speed drops to 5-20 seconds to make the connection. Between 11.0 systems, and the speed drops to 20 seconds plus, even on 550Mhz systems. A lot of the speed issue is also related to the floating point speed of the system(s) you're using.
Once the initial connection is made, however, the system should be just as fast as anything else: ftp, cp, or remsh.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 08:56 AM
04-14-2003 08:56 AM
Re: SSH very slow
This is very very unacceptable!
These documents(I am finaly able to search for forum questions) tell me that I just have to live with it that hp-ux 11.00 needs over a 20 seconds before it starts working due to a missing /dev/random/ or /dev/urandom.
I don't know but I thought it was an HP software package I downloaded. We're talking about hp-ux 11.00 here not 9.X
O my god, I am defintly NOT going to recommend to use ssh on HP-ux. Sorry but this is very disapointing.
Thanks for your advise !
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 11:32 AM
04-14-2003 11:32 AM
Re: SSH very slow
Also, remember that this delay is ONLY during the initial connection. Once the connection is made, the speed is as for anything else. Its just a lot more secure. When my DBA's complain about this delay, I remind them that we can upgrade the OS anytime we want to.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 01:36 PM
04-14-2003 01:36 PM
Re: SSH very slow
Try turn off reverse lookup checking and see if it improves throughput.
What also help is by adding -v with ssh & scp and see what really it is waiting on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 09:40 PM
04-14-2003 09:40 PM
Re: SSH very slow
I run SSH on UX 11.00 without slowness.
The trick is to configure SSH not to regenerate the key so often by editing the sshd_config file and using:
KeyRegenerationInterval 3600
Also make sure the size of the key is not too big, I use:
ServerKeyBits 768
Finally, as it will do a reverse lookup of the client connecting to SSH, you can speed up the process by caching the DNS on your HP, (see "man named").
Cheers...
(Of course, I was assuming you use OpenSSH2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 09:40 PM
04-14-2003 09:40 PM
Re: SSH very slow
I run SSH on UX 11.00 without slowness.
The trick is to configure SSH not to regenerate the key so often by editing the sshd_config file and using:
KeyRegenerationInterval 3600
Also make sure the size of the key is not too big, I use:
ServerKeyBits 768
Finally, as it will do a reverse lookup of the client connecting to SSH, you can speed up the process by caching the DNS on your HP, (see "man named").
Cheers...
(Of course, I was assuming you use OpenSSH2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 09:48 PM
04-14-2003 09:48 PM
Re: SSH very slow
In /opt/openssh2/etc/sshd_config, set key regeneration interval to something better than the default, I use:
KeyRegenerationInterval 3600
Also, set the key length to something a little less taxing on the system:
ServerKeyBits 768
Finally, cache your DNS on the HP system using named, so reverse lookups run faster or just use the hosts file and no DNS.
Might reduce the security a little, but at least it performs well and is a darn site more secure than telnet.
My settings are as follows:
me@myhp /opt/openssh2/etc > cat sshd_config
Port 22
HostKey /opt/openssh2/etc/ssh_host_key
HostKey /opt/openssh2/etc/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
StrictModes yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
Subsystem sftp /opt/openssh2/libexec/sftp-server
Cheers...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 09:51 PM
04-14-2003 09:51 PM
Re: SSH very slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 02:09 AM
04-15-2003 02:09 AM
Re: SSH very slow
Running it as a daemon can produce some performance enhancements for initial connection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 04:18 AM
04-15-2003 04:18 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x908a19434a69d711abdc0090277a778c,00.html
may also be relevant here. -Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 10:26 PM
04-15-2003 10:26 PM
Re: SSH very slow
Thanks a lot for your thread, this indeed gave the solution !! I have been searching for answers but didn't came up with this one.
/opt/ssh/etc/ssh_prng_cmds
should have many entries deleted !! (I would have sworn it is an HP created package, some commands even don't excist on HP ??)
Michael, Many thanks for your assistance !! You gave me some info about a working install, although it didn't come to an answer your help is still apreciated !!
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 06:59 AM
04-30-2003 06:59 AM
Re: SSH very slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2003 02:53 PM
05-02-2003 02:53 PM
Re: SSH very slow
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
05-07-2003 02:01 AM
05-07-2003 02:01 AM
Re: SSH very slow
you wrote that installing Openssh 3.5 would fix the problem... this is right but only because the supplied ssh_prng_cmds is broken! It does not generate ANY entropy at all!
If you take a look at the file you see many entries like @PROG_LS@ which normaly should contain "/bin/ls" etc. The result is, that the commands are not found and no entropy is generated. Verify this by issueing the command /opt/ssh/libexec/ssh-rand-helper -vvv :
20166: debug1: loading PRNG seed from file //.ssh/prng_seed
20166: debug1: Seeded RNG with 3 bytes from system calls
20166: debug1: Loaded 52 entropy commands from /opt/ssh/etc/ssh_prng_cmds
20166: debug3: Reading output from 'ls -alni /var/log'
20166: debug3: Time elapsed: 1 msec
20166: debug2: Command 'ls -alni /var/log' exit status was 255
20166: debug3: Got 0.00 bytes of entropy from 'ls -alni /var/log'
20166: debug3: Reading output from 'ls -alni /var/adm'
20166: debug3: Time elapsed: 1 msec
*snip*
Every entry returns 255 (file not found)... this is far from being OK.
In addition the ssh_prng_cmds is not modified to follow HP-UX syntax of some commands, e.g. ls -alTi is not valid, ifconfig -a does not give any usable output, netstat -pn needs more options to display any "random data" etc...
HP, please fix this in all versions of openssh!
While doing this, please remove the df commands because it prevents you from logging in if the server has stale NFS mounts.
In general, to answer the first question, ssh-rand-helper -vvv is your friend if you have performance problems (and no /dev/random).
Regards,
Armin