My /etc/ssh/sshd_config file has a line like:

AllowUsers jim@

If I want to allow jim to use another IP addresses, how do I specify it?

Does it take the form of a comma separated list? Or, do add a similar line like

AllowUsers jim@new-ip-address


  • 1
    The manapage is pretty clear on this: "This keyword can be followed by a list of user name patterns, separated by spaces." – Celada Mar 2 '13 at 1:22

I would do

AllowUsers jim@ jim@


AllowUsers jim@11.22.33.*

should work, that is if you are internal and he has a dynamic ip.

| improve this answer | |
  • I have similar Error. I want root to login to any IP, I want user1 to login from specific ip for example and I want all other users to login from any IP. How do I do this? – p01ymath Jun 29 '17 at 5:37
  • 1
    @AdarshSojitra you don't want a remote access for the user root. – funky-future Aug 9 '17 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.