- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH login using passwordless entry
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
09-28-2005 02:18 AM
09-28-2005 02:18 AM
We are running an HP UX 11.x system with OpenSSH 4.1 (HP's latest adaptation). Client
will be either hp ux machine or windows machine.
I'm having trouble setting up passwordless login for ssh.
This is my first time setting this up so I'd like to trace my steps and you can all
tell me what I screwed up :). I take lumps well.
I don't want them running rampant through the system so I ran
/opt/ssh/ssh_chroot_setup.sh allowing them to scp, SFTP, and ssh. For sake of
example, I'll call the user nopassuser.
I set them up so they are homed to /apps/newroot/home/nopassuser.
I then chown'd the directory (since i was root) to nopassuser:users and chmod'd
it to 700. So it looks like this
drwx------ 4 nopassuser users 1024 Sep 27 14:11 nopassuser
Under it I placed the following dirs (nopassuser/.ssh and nopassuser/pub)
drwxr-xr-x 2 nopassuser users 1024 Sep 27 15:25 .ssh
drwxrwxrwx 2 root sys 96 Sep 23 15:51 pub
The pub is just a location to test whether transfer of a file works correctly so
I chmod'd it to 777 when I was testing if they could get in with a password. Yeah,
that worked.
Anyway, within .ssh I have 2 files with 700 permissions
-rwx------ 1 nopassuser users 2481 Sep 27 15:25 authorized_keys
-rwx------ 1 nopassuser users 2481 Sep 27 15:25 authorized_keys2
The people on the client side passed me 4 public keys. They looked like this
ssh-dss *normal junk code* user@servername. I got this in email on my windows work
client. I SFTP'd those to the HP box.
I ceated the authorized_keys2 by "touch" and then inserted the text
with an append.
I believe I probably only need the authorized_keys2 and not the first one.
I haven't restarted the sshd since we have lots of admins in the system.
Am I missing something?
Someone said it would probably be best to check the authorized_keys2 file for
spaces or problems.
Is there a better way to create that file and is it in the correct location and
does it have the correct permissions?
From what I gathered on google, etc., it appears to be.
Thanks for any help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 02:26 AM
09-28-2005 02:26 AM
Re: SSH login using passwordless entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:02 AM
09-28-2005 03:02 AM
Re: SSH login using passwordless entry
Hello Rick!
No I have not.
And that actually leads me to a question I've had for a while.
When sshd starts up, what types of information are cached into it?
I believe it reads the configuration file so any modification to that requires a kill and restart of sshd.
However, every time I add a user must I restart sshd? And if I add a new key or change the authorized_keys2 (for a user) must I also restart?
I hesitated to do that (restart) since I have multiple admins in the system most of the time.
Thanks for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:31 AM
09-28-2005 03:31 AM
Re: SSH login using passwordless entry
Your worries about other admins, use the 'kill -HUP
As to adding users - no.
As to making mods to the keys or hosts - no.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:39 AM
09-28-2005 03:39 AM
Re: SSH login using passwordless entry
>>As to making mods to the keys or hosts - no.
Okay, so for your original "restart," that was just a suggestion in case something else was changed?
Only thing I really did was add the new user and establish the authorized_keys2.
Thank you for your help so far! It's good information to have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:46 AM
09-28-2005 03:46 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=779355
There is an attachment with this post (look at the post from SEP) and this has a cheat sheet for HPUX Secure Shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:56 AM
09-28-2005 03:56 AM
Re: SSH login using passwordless entry
sshd_config! Duh!
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
I'm assuming that pubkey defaults to no.
Now, this would make sense heh...
I'll try swapping both and seeing if i can get the oracle dba, other admins off long enough for me to restart.
Thanks.
p.s. Is it a good idea to turn RSA on also?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 04:01 AM
09-28-2005 04:01 AM
Re: SSH login using passwordless entry
I haven't been hurt by it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:32 AM
09-29-2005 03:32 AM
Re: SSH login using passwordless entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 04:20 AM
09-29-2005 04:20 AM
Re: SSH login using passwordless entry
It was a combination (as I expected it would be) of some stupidity (forgetting to turn on the options in sshd_config) and also having the correct file permissions on dir/auth file.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 04:22 AM
09-29-2005 04:22 AM