- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH authentication problems
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
07-17-2007 09:35 AM
07-17-2007 09:35 AM
Even though I copied the public key of the client to the $HOME/.ssh/authorized_keys of the user on the ssh server box, I still cannot authenticate passwordlessly.
I checked, $HOME/.ssh directory is 700 and all files beneath also. DNS doesn't seem to be an issue. Why is this happening?
# ssh -v -v -v pin@baja
...
debug2: key: /apps/acta/.ssh/id_rsa (00000000)
debug2: key: /apps/acta/.ssh/id_dsa (4004e8b0)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /apps/acta/.ssh/id_rsa
debug3: no such identity: /apps/acta/.ssh/id_rsa
debug1: Offering public key: /apps/acta/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
pin@baja's password:
debug3: packet_send2: adding 24 (len 96 padlen 8 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
pin@baja's password:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 12:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2007 01:09 PM
07-17-2007 01:09 PM
Re: SSH authentication problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 08:12 AM
07-18-2007 08:12 AM
Re: SSH authentication problems
Check, check and check. All looks good yet it still asks for a password. Could it be that the server cannot have a lower version than the client?
server=OpenSSH 3.5 on hp-ux 11.23
client=OpenSSH 4.2 on solaris 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 08:21 AM
07-18-2007 08:21 AM
Re: SSH authentication problems
Still it works from lower version to higher version.But it is linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 08:25 AM
07-18-2007 08:25 AM
Re: SSH authentication problems
I am using ssh in a script so it must work without passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 09:44 PM
07-18-2007 09:44 PM
Re: SSH authentication problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2007 10:57 PM
07-18-2007 10:57 PM
Re: SSH authentication problems
I do faced simillar problem in solaris 8 .
looks like the home directory of user pin on baja is not standard ( i.e /export/home/pin 755)
Simple would be change the home directory to standard and create soft link ..
Also check the permission of .ssh directory (700)
and authorized_keys ( 600)
Regards,
Javed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:31 AM
07-19-2007 02:31 AM
Re: SSH authentication problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 02:41 AM
07-19-2007 02:41 AM
Re: SSH authentication problems
Any SSH gurus???
Here is from syslog on SSH server (Solaris 8)
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Connection from xxx.xxx.xxx.xxx port 61587
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Enabling compatibility mode for protocol 2.0
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] WARNING: /usr/local/etc/primes does not exist, using old prime
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Failed none for user1 from xxx.xxx.xxx.xxx port 61587 ssh2
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Failed publickey for user1 from xxx.xxx.xxx.xxx port 61587 ssh2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 03:22 AM
07-19-2007 03:22 AM
Re: SSH authentication problems
Because I am using protocol 2 only, they public keys need to go to the file
$HOME/.ssh/authorized_keys2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 03:27 AM
07-19-2007 03:27 AM
Re: SSH authentication problems
Check the sshd_config for "PubkeyAuthentication no". It should default to yes, but if someone doesn't like PKA, they may have reset it. Also check on the other entries in that file for anything that looks untoward.
Finally, check ssh_config for any entries that might be messing you up.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2007 09:59 PM
07-22-2007 09:59 PM
Re: SSH authentication problems
Have a look at these configuration instructions.
http://www.sun.com/bigadmin/content/submitted/ssh_setting.html
Regards,
Robert-Jan