Avatar of CSIA AN
CSIA AN
Flag 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.
Unix OSLinuxSSH / Telnet Software

Avatar of undefined
Last Comment
woolmilkporc

8/22/2022 - Mon
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CSIA AN

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

Thanks again wmp..

Have a good day!
woolmilkporc

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

wmp
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck