HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SSH hostbased authentication
Operating System - Linux
1831242
Members
2897
Online
110021
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
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-02-2005 12:30 AM
02-02-2005 12:30 AM
SSH hostbased authentication
Hi,
can somebody point me to a good documentation on how to setup ssh hostbased authentication from linux to linux as well as from linux to HP-UX ?
i have read many different documents but none of them has had a working solution for me.
i am always asked for a password when connecting from system A to system B, i have copied over my ssh_host_key.pub and configured the daemons right (hopefully) but without success ....
on linux i use OpenSSH3.8p1-33 and on HPUX i use HP-UX Secure Shell 3.81.004
any help very welcome..
Matthias
can somebody point me to a good documentation on how to setup ssh hostbased authentication from linux to linux as well as from linux to HP-UX ?
i have read many different documents but none of them has had a working solution for me.
i am always asked for a password when connecting from system A to system B, i have copied over my ssh_host_key.pub and configured the daemons right (hopefully) but without success ....
on linux i use OpenSSH3.8p1-33 and on HPUX i use HP-UX Secure Shell 3.81.004
any help very welcome..
Matthias
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 12:50 AM
02-02-2005 12:50 AM
Re: SSH hostbased authentication
Did you take the contents of system A's ssh_host_key.pub and put them in system B's ~/.ssh/authorized_keys file? If not, then it won't use the public key auth... and from your question, I assume that this is what you're trying to setup.
I'm pretty sure someone on the ITRC Forums (hpux) had a mini how-to for what you're trying to setup. I'll post the link when I come across it again.
Until then, you need to take host A's ssh key and "cat ssh_key.pub >> ~/.ssh/authorized_keys" on host B. Then when you ssh from host A to host B it should work... unless the pub key on host isn't in a standard location or name. In that case when you ssh from host A you would use "-i /path/your_ssh_key" option. Check out the ssh man page for details.
For troubleshooting on the client, you can also add "-vvv" option to your ssh syntax.
Hope this helps (or atleast makes some sense),
-denver
I'm pretty sure someone on the ITRC Forums (hpux) had a mini how-to for what you're trying to setup. I'll post the link when I come across it again.
Until then, you need to take host A's ssh key and "cat ssh_key.pub >> ~/.ssh/authorized_keys" on host B. Then when you ssh from host A to host B it should work... unless the pub key on host isn't in a standard location or name. In that case when you ssh from host A you would use "-i /path/your_ssh_key" option. Check out the ssh man page for details.
For troubleshooting on the client, you can also add "-vvv" option to your ssh syntax.
Hope this helps (or atleast makes some sense),
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 01:02 AM
02-02-2005 01:02 AM
Re: SSH hostbased authentication
Found the thread I was thinking about. Chris Vail posted and attached an easy to follow how-to.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=184587
hope this helps,
-denver
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=184587
hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 02:43 AM
02-02-2005 02:43 AM
Re: SSH hostbased authentication
Hi Denver,
thanks for all this information.
maybe i have just misunderstood the whole 'hostbased' thing ...
everything you described works for me as well but this requires an already existing key for user root on system B. after a fresh install there is no key for user root available but there is a ssh_host_key.pub already available and i thought copying this key (istead of craeting an key for user root) to /etc/ssh/authorized_keys would work - but it doesn't.
so am i wrong or is this user-based authentication when i use the keys from both root users ? i thought using the host_key files is host based authentication ... correct me if i am wrong but i still can't make it work with the host_key.. the solution with the keys from the root users works fine.
thanks for helping.
Matthias
thanks for all this information.
maybe i have just misunderstood the whole 'hostbased' thing ...
everything you described works for me as well but this requires an already existing key for user root on system B. after a fresh install there is no key for user root available but there is a ssh_host_key.pub already available and i thought copying this key (istead of craeting an key for user root) to /etc/ssh/authorized_keys would work - but it doesn't.
so am i wrong or is this user-based authentication when i use the keys from both root users ? i thought using the host_key files is host based authentication ... correct me if i am wrong but i still can't make it work with the host_key.. the solution with the keys from the root users works fine.
thanks for helping.
Matthias
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