- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH trusting not working
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
10-06-2004 06:08 AM
10-06-2004 06:08 AM
Anyway, I have created both DSA and RSA keypairs for both accounts and added them to BOTH authorized_keys and authorized_keys2 (since nobody around here seems to know which file v3.71 actually uses) on the destination account. Still no dice. Here's what an ssh -v gives me:
-----------------------------------
debug1: Found key in /u/Informatica7/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /u/Informatica7/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering public key: /u/Informatica7/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password:
----------------------------------------
Why on earth is it prompting me for a password? Why didn't it just accept the rsa and dsa keys? Argh.
Note that the server root account trusts the root account on our admin server, and I can get in with no problems.
I've looked at permissions; some of them looked a little hazy (the .ssh directory for both accounts was 700, I changed it to 755). I've changed everything I can think of! Am I missing something painfully obvious here? I know it's possible to set up trust for an account from a server to itself, so I can't see what's going wrong.
Thanks!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:12 AM
10-06-2004 06:12 AM
SolutionYou will get more information if you run sshd in debug mode. Do the following.
#sshd -d -p 1212 (some orbitrary port)
Take another session and do ssh
$ssh otheruser@thishost -p 1212
Look at the output sshd gives.
I believe it's most likely due to permissions on the destination account. Make sure the permissions are not wide open on the home directory as well .ssh directory in side.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:17 AM
10-06-2004 06:17 AM
Re: SSH trusting not working
Run through this doc, ignoring the x-windows part and doing the setup again with cat ...
Wait!
Changing users?
Well. Never tried anyway. The doc I'm attaching allows the same user on multiple machines to do it.
root can always do what it wants.
I would check directory permission on the two users home directories.
See Doc, it might help you catch something. Word format.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:18 AM
10-06-2004 06:18 AM
Re: SSH trusting not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:38 AM
10-06-2004 06:38 AM
Re: SSH trusting not working
Setting up a temporary sshd daemon on port 12121 so I could read the output showed me the exact problem. Thanks, y'all!