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

AllowUsers [email protected]

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, 2013 at 1:22

1 Answer 1


I would do

AllowUsers [email protected] [email protected]


AllowUsers [email protected].*

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

  • 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? Jun 29, 2017 at 5:37
  • 1
    @AdarshSojitra you don't want a remote access for the user root. Aug 9, 2017 at 12:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .