Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question
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
up vote 11 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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