- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH Problem keeps asking password
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
08-17-2007 03:25 AM
08-17-2007 03:25 AM
Attached is the output from the following command:
$ ssh -vvv csux002
The versions are:
csux011 (HP-UX 11.00)
HP-UX port of OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
csux002 (HP-UX 11.00)
HP-UX Secure Shell-A.04.30.014, HP-UX Secure Shell version
I already reconfigured a few times, tried to configure with 1024 and 2048 bits keys. I also tried to use the key generated with the command below:
$ ssh-keygen -e -f id_rsa.pub > id_rsa_new.pub
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 03:30 AM
08-17-2007 03:30 AM
Re: SSH Problem keeps asking password
It's complaining about however you have your public/private key set up:
debug1: try pubkey: /home/oracle/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: try privkey: /home/oracle/.ssh/id_dsa
debug3: no such identity: /home/oracle/.ssh/id_dsa
debug2: we did not send a packet, disable method
It can't match the 2 up. Are you sure you set them up correctly?
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 03:42 AM
08-17-2007 03:42 AM
Re: SSH Problem keeps asking password
Please take a look at the attached link,
https://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1125086
I do recall that SSH is very picky about directory and file permissions. So these maybe worth checking.
Regards,
Berd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 03:51 AM
08-17-2007 03:51 AM
SolutionYou might want to get the server-side debug logs to find out what causes the server to reject the key. If there is no firewall between the two computers, you could do this:
- on csux002:
execute /opt/ssh/sbin/sshd -p 2222 -ddd
- on csux011:
execute ssh -vvv -p 2222 csux002
using the user account that has the keys set up.
The sshd-side debug output on csux002 should reveal why the key is being ignored.
Some common causes are:
- too relaxed permissions on csux002: check the permissions of the user's home directory (drwxr-xr-x is the maximum allowed; if there are any more w's, sshd won't trust any public keys it finds), ~/.ssh directory (ditto) or ~/.ssh/authorized_keys file.
- wrong key format: as both servers use OpenSSH-derived code (HP-UX Secure Shell is an enhanced port of OpenSSH), you don't need "ssh-keygen -e".
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 04:11 AM
08-17-2007 04:11 AM
Re: SSH Problem keeps asking password
Your key gen command should be:
ssh-keygen -t rsa -f id_rsa
Also, make sure .ssh is 700 and owned by that user.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 04:34 AM
08-17-2007 04:34 AM
Re: SSH Problem keeps asking password
- too relaxed permissions on csux002: check the permissions of the user's home directory (drwxr-xr-x is the maximum allowed; if there are any more w's, sshd won't trust any public keys it finds), ~/.ssh directory (ditto) or ~/.ssh/authorized_keys file.
That's it. The permitions for the oracle home directory were 777. After changing it, it worked.
Thanks a lot! :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 05:52 AM
08-17-2007 05:52 AM