- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH for different users with one $HOME
Operating System - HP-UX
1748176
Members
4271
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО02-18-2008 01:09 AM
тАО02-18-2008 01:09 AM
SSH for different users with one $HOME
Hi,
can anyone tell me, what is the best way to configure ssh for 2 different users user1 and user2 having the some homedirectory on a server. (both hpux 11.11)
user1@client1# ssh user1@server
user2@client1# ssh user2@server
In the moment it works only for the owner of $HOME by using id_dsa.pub and authorized_keys.
Is there hostbased authentication the correct way and how is this to configure?
thanks
Romana
can anyone tell me, what is the best way to configure ssh for 2 different users user1 and user2 having the some homedirectory on a server. (both hpux 11.11)
user1@client1# ssh user1@server
user2@client1# ssh user2@server
In the moment it works only for the owner of $HOME by using id_dsa.pub and authorized_keys.
Is there hostbased authentication the correct way and how is this to configure?
thanks
Romana
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2008 03:32 AM
тАО02-18-2008 03:32 AM
Re: SSH for different users with one $HOME
> [...] the best way [...]
That depends. Are you talking about an SSH
client or server?
As a client, one way may be to make at least
one of the users use "ssh -i". As
"ssh -h" says:
-i file Identity for public key authentication (default: ~/.ssh/identity)
"man ssh" adds more detail.
Hostbased authorization may be another way to
solve the problem. I don't use it, so I'd
need to read more before offering advice on
how to configure it.
That depends. Are you talking about an SSH
client or server?
As a client, one way may be to make at least
one of the users use "ssh -i". As
"ssh -h" says:
-i file Identity for public key authentication (default: ~/.ssh/identity)
"man ssh" adds more detail.
Hostbased authorization may be another way to
solve the problem. I don't use it, so I'd
need to read more before offering advice on
how to configure it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2008 04:39 AM
тАО02-18-2008 04:39 AM
Re: SSH for different users with one $HOME
This is very bad that two users share the same HOME from sshd's security standpoint.
You might try to edit sshd_config on the server with the users' shared HOME,
and add this entry
StrictModes no
and reinitialize the sshd by
# kill -1 $(UNIX95= ps -C sshd -o pid= -o ppid=|awk '$2==1{print$1}')
or
# kill -1 $(cat /var/run/sshd.pid)
Then retry.
But this is an ugly degradation of security and should generally be avoided.
You might try to edit sshd_config on the server with the users' shared HOME,
and add this entry
StrictModes no
and reinitialize the sshd by
# kill -1 $(UNIX95= ps -C sshd -o pid= -o ppid=|awk '$2==1{print$1}')
or
# kill -1 $(cat /var/run/sshd.pid)
Then retry.
But this is an ugly degradation of security and should generally be avoided.
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2008 04:42 AM
тАО02-18-2008 04:42 AM
Re: SSH for different users with one $HOME
According to the source code of openssh-4.3p2, the authorized_keys file and all components of the path to it (i.e. /, /home, /home/userdir, /home/userdir/.ssh) must be owned by either the user that is trying to log in _or root_, and must not be group or world writable.
(The check is made in openssh-/auth.c file, if you need more details.)
This means the shared home directory cannot be writable by either user, but it may contain sub-directories that are writable by either or both users.
Without knowing more about your requirements, it's hard to say which is the "best" or "correct" way.
MK
(The check is made in openssh-
This means the shared home directory cannot be writable by either user, but it may contain sub-directories that are writable by either or both users.
Without knowing more about your requirements, it's hard to say which is the "best" or "correct" way.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP