You have to add this line to /etc/pam.d/ssh:
account required pam_access.so
Or to whatever service you wish to restrict
On Tue, Feb 27, 2001 at 01:05:33AM +0000, John O Sullivan wrote:
> You might need to restart sshd, or kill -HUP (pid of sshd process)
>> johno
>> On Mon, 26 Feb 2001 23:45:05 Patrick Brady wrote:
> > Hello ILUG,
> > On my linux box I wish to restrict the hosts from which I can logon.
> > So I edited
> > /etc/login.access and added the following line:
> > -:pbrady:ALL EXCEPT LOCAL 134.226. 127.0.0.
> > I then opened a ssh session from a host not in the above IP ranges
> > and connected to the
> > linux box without any problems.. much to my disappointment. Anyone
> > have any ideas as to
> > why the /etc/login.access file is being ignored?
> > Thanks,
> > Patrick
>>> --
> First they ignore you, then they laugh at you, then they fight you,
> then
> you win. -- Gandhi
>>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
--
Martin
--
Bother! said Pooh, as he hid Piglet's corpse.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!