PDA

View Full Version : blocking ssh for a particular user


jithesh
4th May 2006, 10:41
can any one tell me how to block a particular users ssh login.But when he logs in locally it should happen.
thank you

falko
4th May 2006, 12:03
If the user has a static IP address, you can add

sshd: 12.34.56.78

to /etc/hosts.deny. Replace 12.34.56.78 with the user's static IP address.