- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- unable to ssh from Linux
Operating System - Linux
1752793
Members
5908
Online
108789
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
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
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
09-20-2009 02:11 AM
09-20-2009 02:11 AM
unable to ssh from Linux
Hi All,
I have set the ssh configuration for HP-UX.
I am able to ssh from HP-UX box to HP-UX box without password.
But when i try from a Linux box, it is prompting for password. The content of /root/.ssh/authorized_keys is same on both machines.
For configuring remotely is any additional configuration required in the file opt/ssh/etc/sshd_config
Thanks and Regards,
Vivek
I have set the ssh configuration for HP-UX.
I am able to ssh from HP-UX box to HP-UX box without password.
But when i try from a Linux box, it is prompting for password. The content of /root/.ssh/authorized_keys is same on both machines.
For configuring remotely is any additional configuration required in the file opt/ssh/etc/sshd_config
Thanks and Regards,
Vivek
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2009 04:50 AM
09-20-2009 04:50 AM
Re: unable to ssh from Linux
The /root/.ssh/authorized_keys on the Linux machine is relevant only if you're trying to connect *to* it. When you're connecting *from* it, it is not used at all.
If you can connect from HP-UX to HP-UX as root, the destination HP-UX obviously allows root logins.
Is there a pair of SSH key files ( ~/.ssh/id_* and ~/.ssh/id_*.pub) in the home directory of the Linux user that is initiating the connection? Are the home directory, the .ssh sub-directory and the key files owned by the user and adequately protected?
i.e.
chmod go-w ~
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_*
Is the content of ~/.ssh/id_*.pub on the Linux host added to the /root/.ssh/authorized_keys on the HP-UX host?
Is there any messages in the syslog of the HP-UX host to indicate why it might have rejected the incoming SSH key authentication from the Linux host?
Obligatory Note: direct root logins are a bad practice. Any security audit will at the very least require you to write a special justification for it (or fail you outright), and if you ever need to find out who did something bad, if your only answer is "I don't know who it was: it was done by logging in directly as root", your boss is not going to be happy at all.
MK
If you can connect from HP-UX to HP-UX as root, the destination HP-UX obviously allows root logins.
Is there a pair of SSH key files ( ~/.ssh/id_* and ~/.ssh/id_*.pub) in the home directory of the Linux user that is initiating the connection? Are the home directory, the .ssh sub-directory and the key files owned by the user and adequately protected?
i.e.
chmod go-w ~
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_*
Is the content of ~/.ssh/id_*.pub on the Linux host added to the /root/.ssh/authorized_keys on the HP-UX host?
Is there any messages in the syslog of the HP-UX host to indicate why it might have rejected the incoming SSH key authentication from the Linux host?
Obligatory Note: direct root logins are a bad practice. Any security audit will at the very least require you to write a special justification for it (or fail you outright), and if you ever need to find out who did something bad, if your only answer is "I don't know who it was: it was done by logging in directly as root", your boss is not going to be happy at all.
MK
MK
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP