Re: AllowUser, DenyUser don't work.
- From: Philipp Snizek <psnizek@xxxxxxxxxx>
- Date: Wed, 31 Jan 2007 08:08:15 +0100
I try to restrict some kind of login through AllowUser and DenyUser but
failed.
openssh version: 4.5
What I want: disable root login from network outside 192.17.0.0 What I wrote into /etc/ssh/sshd_config
***************************
DenyUsers root
AllowUsers root@xxxxxxx*
***************************
However, after that not only root can not login from anywhere, but all
the other accounts are also disabled
Anything I did wrong?
Yes.
/etc/ssh/sshd_config:
AllowUsers you@thehostyourecomingfrom
AllowRootLogin=no
ssh you@yourbox
you@yourbox:~$ su - root
Best,
Philipp
- References:
- AllowUser, DenyUser don't work.
- From: MCG ZHUANG Liang
- AllowUser, DenyUser don't work.
- Prev by Date: Re: AllowUser, DenyUser don't work.
- Next by Date: Carriage return character added automatically
- Previous by thread: Re: AllowUser, DenyUser don't work.
- Next by thread: Re: AllowUser, DenyUser don't work.
- Index(es):
Relevant Pages
|