Link to home
Create AccountLog in
Avatar of CSIA AN
CSIA ANFlag for Andorra

asked on

Allow some users from certain IP access to openssh on AIX.

Hi,

We want to allow access to OPenssh to user1, user2 and user3 but ONLY from these IPs:

user1@IP1
user2@IP1
user3@IP2

So access from user1@*, user2@*, user3@*  (any other IP) must be denied.

And all other users/groups can access the system via SSH.

Which do you think is thepossible  combination of:

AllowUsers
AllowGroups
DenyUsers
DenyGroups

inside /etc/ssh/sshd_config file?

Thanks.
SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of CSIA AN

ASKER

Hi,

I'll take a look to "authorized_keys File Format", but I think it's not what customer wants. At first glance, it seems not to be a solution inside sshd_config file? I have tried with sshd_config but not success.
Let me check "authorized_keys File Format"
Thanks.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of CSIA AN

ASKER

OK.. I'll take a look at ssh keys.

Thanks again wmp..

Have a good day!
Thx for the points and have a good day, too!

wmp