1

in my quest to create a public user with almost no rights and an administrator user that can only accessed by me, I'd like to know if it is possible to limit SSH access to said administrator user to LAN/specifc IP adress/unique token only, without limiting the access to the publicly accessible user.

Is there a function in openssh-server that allows for such a level of customization?

1 Answers1

0

You can restrict by IP for a specified user. Add below line in /etc/ssh/sshd_config:

AllowUsers user@x.x.x.x

Also you can do as below if you need more than one IP:

AllowUsers user@x.x.x.x user@y.y.y.y OR user@x.x.x.*

binarysta
  • 116