- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Password-less authentication in HP-UX SSH
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
Password-less authentication in HP-UX SSH
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 05:12 AM
05-30-2009 05:12 AM
I am trying with 2 HP-UX boxes, one is 11iv2 and another is with 11iv3.
created RSA and DSA keys with "ssh-keygen -t rsa/dsa" on both nodes, add both nodes both rsa/dsa public keys to their authorized_keys file, but i am not able to SSH without password.
The permissions of .ssh/* directory/files are correct.
The configuration files (sshd_config) is correct ( PubkeyAuthentication yes )
I am not understanding why it is not working.
I have gone through the HP-UX secure shell documentation, in the documentation i found bellow line to add the public keys.
# cat $HOME/.ssh/id_dsa.pub ssh remoteuser@remotehost
’cat - >> $HOME/.ssh/authorized_keys’
I fell this command somewhat wrong .
Anyone tell me what is the right way to do this SSH password-less authentication ?
Is the procedure is somewhat different in HP-UX ?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 05:18 AM
05-30-2009 05:18 AM
SolutionPlease examine your /var/adm/syslog/syslog.log file: if sshd rejects your key authentication attempt, the reason for rejection will be listed in the log file.
MK
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 06:51 AM
05-30-2009 06:51 AM
Re: Password-less authentication in HP-UX SSH
Re: Password-less authentication in HP-UX SSH
We are using the below procedure in our environment ,hope this will help you
On local machine (the steps for local machine are only done once):
=====================
Log in as user account
/usr/local/bin/ssh-keygen2 -t dsa -b 512
cd ~/.ssh2
echo "IDKey id_dsa_1024_a" > identification
On remote machines
==================
1)Log in as user account to remote machine
2)if ~/.ssh2 doesn't exist,create .ssh2 directory
mkdir ~/.ssh2
cd ~/.ssh2
mkdir keys
cd keys
3)Get(ftp, scp, etc) the file ~/.ssh2/id_dsa_1024_a.pub from source machine and
put it in the remote ~/.ssh2/keys directory. Name it something unique.
Something like ~/.ssh2/keys/userid.localmachinename.pub
cd ~/.ssh2
echo "Key keys/userid.localmachinename.pub" >> authorization
(replace userid.localmachinename.pub with whatever the file was named).
If you are still not able to do ssh then
do ssh -v useranme@remotemachine
and paste the logs
Rgds
Johnson
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 06:57 AM
05-30-2009 06:57 AM
Re: Password-less authentication in HP-UX SSH
Re: Password-less authentication in HP-UX SSH
so you say, but you don't provide a listing? If the keys are in $HOME/.ssh, then the permissions on $HOME need to be set properly as well. This may show up in the syslog f the server you are trying to login to.
on either server, try logging in to the other with:
ssh -vvv
which should provide details as to what is going on. if you continue to have problems,
start sshd in "debug" mode on one server on an unused port, and ssh w/ the -v options to that port.
see this link:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1243695013889+28353475&threadId=1335574
or search Admin forum for "ssh permission".
There is also a config file option for sshd which can relax the permissions required if necessary. see "man sshd_config" and "StrictModes" option for details.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 09:47 AM
05-30-2009 09:47 AM
Re: Password-less authentication in HP-UX SSH
Re: Password-less authentication in HP-UX SSH
Thank you all.
/var/adm/syslog/syslog.log conatins a line "Authentication refused: bad ownership or modes for file /.ssh/authorized_keys"
Previous it was 666, i changed to 600, then it worked.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 09:50 AM
05-30-2009 09:50 AM
Re: Password-less authentication in HP-UX SSH
Re: Password-less authentication in HP-UX SSH
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2009 09:51 AM
05-30-2009 09:51 AM
Re: Password-less authentication in HP-UX SSH
Re: Password-less authentication in HP-UX SSH
Bill Hassell, sysadmin
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP