I want to configure server so only one user (
git) is able to login from any IP address (using key), the other users just from specified IPs.
Currenly my configuration allows to login any user from just one specified IP.
Here's what I have now:
PermitRootLogin no StrictModes yes RSAAuthentication yes PubkeyAuthentication yes # AllowUsers # not configured
# my workplace IP sshd: 191.225.37.xyz # my trusted server ALL: my.private.com
# bunch of addresses added by protection services sshd: x.y.z.v
UFW is disabled.
How to configure it so any user can login just from this specified IP (as is), but
git user is able to login via ssh from any IP?