- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stdin & ssh: "Pseudo-terminal will not be allocate...
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
01-23-2006 02:34 AM
01-23-2006 02:34 AM
Is there a good way to programmatically pass my password or public key to ssh (OpenSsh 3.91)?
When I do either:
echo "mypasswd" > ssh myhost -l user
or
ssh myhost -l user << EOF
mypasswd
EOF
I get the following error:
"Pseudo-terminal will not be allocated because stdin is not a terminal"
So, the real question is how do I have scripts/applications use ssh without user intervention? Ok, I can use public key authentication with ssh-agents but in my environment do not have time for the users to enter data in the agent. I want the server to come up with no user input wharsoever.
regards,
haralambos
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:27 AM
01-23-2006 03:27 AM
Re: stdin & ssh: "Pseudo-terminal will not be allocated..." error
ssh_keygen -t dsa
scp ~.ssh/dsa_pub host:/root/.ssh/authorized_keys
The procedure for root, change it accordingly.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:39 AM
01-23-2006 03:39 AM
Re: stdin & ssh: "Pseudo-terminal will not be allocated..." error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:41 AM
01-23-2006 03:41 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 04:19 AM
01-23-2006 04:19 AM
Re: stdin & ssh: "Pseudo-terminal will not be allocated..." error
I really want to keep my keys passphrase encrypted and at the same time have the convinience of no-human interaction at boot time. I mean, ssh-agents can be actually used but again the requirement is to not have the users enter the passphrase.
So, how can the "expect" scripts work in this case? Can you provide an example? When and how are they being kicked-off and how is the passphrase/passwd passed to them; is it hardcoded?
Regards,
Haralambos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 12:33 AM
01-24-2006 12:33 AM
Re: stdin & ssh: "Pseudo-terminal will not be allocated..." error
I don't have any working examples handy, but if you search these forums for "expect" you'll find some.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 01:48 AM
01-27-2006 01:48 AM
Re: stdin & ssh: "Pseudo-terminal will not be allocated..." error
Thanks for the tips!
regards