HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh-related question
Operating System - HP-UX
1833874
Members
2759
Online
110063
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
02-15-2007 02:54 AM
02-15-2007 02:54 AM
I'm using ssh (OpenSSH_3.9) successfully via command line and I want to make the same connection programmatically using python and pexpect.
Using ssh -v I see the same output btwn the two methods up until the point where it asks for my passwd. Command line prompts for a passwd but running through pexpect it fails trying to find /opt/ssh/libexec/ssh-askpass which doesn't exist. Afaik ssh-askpass is a linux thing and not hpux.
I don't think this is a pexpect issue since other commands (e.g. pwd, ls) work fine.
Any ideas why it's looking for ssh-askpass? What is the hp equiv?
TIA,
Bill
Using ssh -v I see the same output btwn the two methods up until the point where it asks for my passwd. Command line prompts for a passwd but running through pexpect it fails trying to find /opt/ssh/libexec/ssh-askpass which doesn't exist. Afaik ssh-askpass is a linux thing and not hpux.
I don't think this is a pexpect issue since other commands (e.g. pwd, ls) work fine.
Any ideas why it's looking for ssh-askpass? What is the hp equiv?
TIA,
Bill
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 03:17 AM
02-15-2007 03:17 AM
Solution
ssh-askpass is not tied to any particular platform (other than X11), but HP may not include it. ssh is probably looking for ssh-askpass because it thinks it doesn't have a terminal but $DISPLAY is set.
I don't know anything about pexpect so I can't really comment on it. pexpect might need to be set to request a tty or something. Unsetting DISPLAY should also prevent ssh from looking for ssh-askpass.
ssh keys are the usual approach for scripted/unattended ssh logins.
I don't know anything about pexpect so I can't really comment on it. pexpect might need to be set to request a tty or something. Unsetting DISPLAY should also prevent ssh from looking for ssh-askpass.
ssh keys are the usual approach for scripted/unattended ssh logins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 03:34 AM
02-15-2007 03:34 AM
Re: ssh-related question
Heironimus,
Thanks, unsetting DISPLAY did the trick.
Thanks, unsetting DISPLAY did the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 03:35 AM
02-15-2007 03:35 AM
Re: ssh-related question
See above.
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