- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh issue w/ "expect"?
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
тАО02-25-2009 06:15 AM
тАО02-25-2009 06:15 AM
ssh issue w/ "expect"?
OpenSSH_4.3p2, OpenSSL 0.9.7l 28 Sep 2006
I've observed the following behaviour when running expect's autopasswd:
the password change is processed, but at the completion it does not return control to the terminal (i.e. terminal / keyboard frozen).
Similar experience with PowerBroker's pbreplay keystroke log player.
This occurs on all of the OSes noted above.
In testing, I note that in all cases, log in via telnet and both of the above function properly across all the noted OSes. This leads me to suspect issues w/ ssh and exec's, or possibly redirection.
Anybody have similar experience and/or know for sure if a newer OpenSSH will fix this issue? I'd like some confirmation before I start rebuilding everything from source for the HP-UX (and AIX 4.3.3) boxes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2009 08:17 AM
тАО02-25-2009 08:17 AM
Re: ssh issue w/ "expect"?
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
тАО02-25-2009 08:22 AM
тАО02-25-2009 08:22 AM
Re: ssh issue w/ "expect"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2009 08:51 AM
тАО02-25-2009 08:51 AM
Re: ssh issue w/ "expect"?
I'd figure the behaviour should be identical under both???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2009 08:56 AM
тАО02-25-2009 08:56 AM
Re: ssh issue w/ "expect"?
> autopasswd lxxs7m dunce999
spawn passwd lxxs7m
Changing password for "l00s7m"
lxxs7m's New password:
Enter the new password again:
keyboard is dead, so I can't enter the ssh escape.
I just want to know:
a) has anyone else observed this and
b) if so, did installing a new version of ssh fix it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 09:22 AM
тАО02-27-2009 09:22 AM
Re: ssh issue w/ "expect"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 12:54 PM
тАО02-27-2009 12:54 PM
Re: ssh issue w/ "expect"?
telnet read passwd on stdin
why?
ssh can be piped to send data, so it needs to read from the tty and not from stdin - some other application read on stderr
expect uses only stdin of the spawned process
and can't be attached to /dev/tty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 01:03 PM
тАО02-27-2009 01:03 PM
Re: ssh issue w/ "expect"?
but given that nobody has answered the questions posed...i suppose i'll have to try a newer version and see what happens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 01:14 PM
тАО02-27-2009 01:14 PM
Re: ssh issue w/ "expect"?
expect expect ssh ....
or
expect rlogin localhost
and then in the script call the ssh command
rlogin can be replaced by any other command which had a client side only using stdin& stdout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 01:40 PM
тАО02-27-2009 01:40 PM
Re: ssh issue w/ "expect"?
i've given up on this for now....
the questions (unanswered) were:
1) has anybody observed....
2) does a newer release....
the entire point was that i logged in via putty and entered either expect's autopasswd or PowerBroker's log replay command and they hang.
I'm not rlogging in...or running a separate command over ssh....and of the above work simply fine over telnet. they also work on a RedHatEL4.0 box running even older versions of openssh / openssl.