- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH - Allowgroups - AllowUsers
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
Discussions
Discussions
Discussions
Forums
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
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
тАО02-08-2006 01:54 AM
тАО02-08-2006 01:54 AM
SSH - Allowgroups - AllowUsers
I'm looking into the sshd_config file and have top make some changes. The changes I have to make is that certain users (e.g. admin's) are only allowed from a certain network segment. I looked into the sshd configuration an read that sshd only supports AllowUsers/DenyUsers. I figured out that AllowGroups/DenyGroups does work, but something like AllowGroups@xxx.xxx.xxx does not work.
Therefore, to allow a connection to a network segment and not to the remaining networks I have to configure the following:
DenyUsers admin1@10.10.10
DenyUsers admin1@10.10.11
DenyUsers admin1@10.10.12
DenyUsers admin2@10.10.10
.....etc
Administrativily this is a nightmare.
Does anyone have a better suggestion ?
Thanks,
INCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 02:04 AM
тАО02-08-2006 02:04 AM
Re: SSH - Allowgroups - AllowUsers
ssh processes /etc/profile
/etc/profile can be programmed to reject users from certain groups.
It won't stop sftp/scp, but this may not be an issue.
You might also want to bring up ipfilter if you wish to block certain hosts.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 02:28 AM
тАО02-08-2006 02:28 AM
Re: SSH - Allowgroups - AllowUsers
Why not using IPFilters for this ?
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:02 AM
тАО02-08-2006 03:02 AM
Re: SSH - Allowgroups - AllowUsers
I think You could try something with PAM instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 03:57 AM
тАО02-08-2006 03:57 AM
Re: SSH - Allowgroups - AllowUsers
IPFilter is a good option.
You can also create hostbased authentication.
sshd_config:
HostbasedAuthentication yes
Have a central server(gateway server) where everybody login and from there start a ssh to the server.
Add the gateway server to /etc/opt/openssh/shosts.equiv
and depending on authentication methode add the server to the ssh_known_hosts.
ssh-keyscan -t rsa
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 06:11 AM
тАО02-08-2006 06:11 AM
Re: SSH - Allowgroups - AllowUsers
did You try:
AllowGroup users@
AllowUsers admin1@
DenyUsers admin1@0.0.0.0
I have no clue if it works, but it would be great if it did.
If it does work, I'll take almost any bet HP won't support it, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 06:34 PM
тАО02-08-2006 06:34 PM
Re: SSH - Allowgroups - AllowUsers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 06:55 PM
тАО02-08-2006 06:55 PM
Re: SSH - Allowgroups - AllowUsers
The HP-UX implementation of SSH does not allow AllowGroups (read FAQ). I did try if it did and it does allow the AllowGroups option, but what I really like is a group and a network like AllowGroups@xxx.xxx.xxx or DenyGroups@xxx.xxx.xxx . If I try this the SSH daemon simply won't start. Bummer.
Bye,
INCS