HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 11.00 SSH Issue
Operating System - HP-UX
1834140
Members
2556
Online
110064
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-12-2007 05:50 AM
10-12-2007 05:50 AM
I'm hoping someone can help me out with a recent problem I've been experiencing. I decided to utilize rsync through ssh to sync certain filesystems. I fixed all the errors on all the machines that were an issue with the PATH not being exported correctly for cron, etc. I have only one small problem left and that is regarding the HP-UX server that is the "source" rsync'ing to the "target". At least a few emails are generated nightly complaing about a few of the rsync jobs in crontab. The errors, although specific to a different filesystem, are all the same:
PRNG seed extration failed
ssh-rand-helper child produced insufficient data
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(453) [sender=2.6.9]
Null message body; hope that's ok
Here's the version of SSH I am running:
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
As I recall, one of the last available depots for this version of the OS before support was pulled.
I am assuming this has something to with random number generation or prngd. My understanding is this isn't, unlike Solaris, built into the kernel. What would be the easiest way to correct this issue I am having?
Thanks in advance.
PRNG seed extration failed
ssh-rand-helper child produced insufficient data
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(453) [sender=2.6.9]
Null message body; hope that's ok
Here's the version of SSH I am running:
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
As I recall, one of the last available depots for this version of the OS before support was pulled.
I am assuming this has something to with random number generation or prngd. My understanding is this isn't, unlike Solaris, built into the kernel. What would be the easiest way to correct this issue I am having?
Thanks in advance.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2007 05:58 AM
10-12-2007 05:58 AM
Re: HP-UX 11.00 SSH Issue
I should add that I have no issues running this manually or even when I come in in the morning and change the cron time to try to run it again. Just some of the jobs overnight fail and the message I pasted above writes to root's email. I know the jobs fail because on an exist condition other than 0 it sends email to a DL notifying us about it.
#!/bin/sh
PATH=/usr/bin:/usr/sbin:/usr/local/bin
export PATH
EMAIL="edited edited"
SOURCE=/data
TARGET=hostname:/
#
# run rsync
#
/usr/local/bin/rsync -ave ssh --exclude "lost+found/" --rsync-path=/usr/local/bi
n/rsync --delete $SOURCE $TARGET > /tmp/rsync_data_with_nyprodc.out
#
# check if the return code is not equal to zero
#
if [ "$?" -ne 0 ]
then mailx -s "Rsync of $SOURCE to $TARGET failed on `hostname`" $EMAIL /null
fi
#!/bin/sh
PATH=/usr/bin:/usr/sbin:/usr/local/bin
export PATH
EMAIL="edited edited"
SOURCE=/data
TARGET=hostname:/
#
# run rsync
#
/usr/local/bin/rsync -ave ssh --exclude "lost+found/" --rsync-path=/usr/local/bi
n/rsync --delete $SOURCE $TARGET > /tmp/rsync_data_with_nyprodc.out
#
# check if the return code is not equal to zero
#
if [ "$?" -ne 0 ]
then mailx -s "Rsync of $SOURCE to $TARGET failed on `hostname`" $EMAIL /null
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2007 11:46 AM
10-12-2007 11:46 AM
Solution
You're on 11.0? Then you don't have a /dev/random and this might be the cause. I haven't seen this happen in 11i or 11iv2 yet.
I've had this a few years ago and if I remember correctly, it happened when I launched many, many automated SSH sessions one after another. My guess is that it happens when the SSH client is not able to gather enough random data to handle the key exchange.
You can insert a pause (20 seconds, maybe more) between each ssh, this might help. If pausing is not possible for you, you can install a third-party random number generator such as Prngd (free) and configure ssh to use it. There used to be an open source, /dev/random loadable kernel module for HP-UX 11.0 that some poor soul somewhere took to the challenge of writing, but I'd use Prngd anyway since it won't taint the kernel. I just googled for this module and it's still available here: http://www.josvisser.nl/hpux11-random/hpux11-random.html
I've had this a few years ago and if I remember correctly, it happened when I launched many, many automated SSH sessions one after another. My guess is that it happens when the SSH client is not able to gather enough random data to handle the key exchange.
You can insert a pause (20 seconds, maybe more) between each ssh, this might help. If pausing is not possible for you, you can install a third-party random number generator such as Prngd (free) and configure ssh to use it. There used to be an open source, /dev/random loadable kernel module for HP-UX 11.0 that some poor soul somewhere took to the challenge of writing, but I'd use Prngd anyway since it won't taint the kernel. I just googled for this module and it's still available here: http://www.josvisser.nl/hpux11-random/hpux11-random.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP