How to configure a user to SSH login only through an special IP?

for example:

A user named ‘guest’ can SSH through the full IP segment.

A user named ‘admin’ can SSH access only through a few specific IPS.

for example:
a user named ‘admin’ only can be access only through ip

how to configure?

Hello @13418485892 , I believe this is not implemented, but you can use RADIUS authentication and create logic by several criterias as you want.

⚓ T971 authentication public-keys options quoting issue is the Phabricator ticket about this feature. I went looking for it a while ago too because I also wanted to be able to restrict users to certain IPs and found that it isn’t currently possible.

Thank you for your reply