Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Fabio Brazzo
December 1, 2010, 11:42 am
rate this thread
The goal here is to create a script to easily manage reservation for a
machine. When a user reserve the machine, it should be the only one able
to access the machine for a given time (except admins of course).
I already found a solution with PAM. This single line in /etc/pam.d/sshd
would have resolve my problem:
auth required pam_listfile.so item=user sense=allow
with the user login in /etc/ssh/sshd.allow
But it does not work at all:
$ cat /etc/ssh/sshd.allow foo $ tail -f /var/log/auth.log Dec 1
12:12:05 mini sshd: Accepted publickey for bar from 192.168.0.11
port 58087 ssh2 Dec 1 12:12:05 mini sshd: pam_unix(sshd:session):
session opened for user bar by (uid=0)
I am running a Debian Squeeze box, I don't know if the behaviour of PAM is
different with this.
Re: How to dynamically restrict SSH access to a given user
iptables can limit the number of connections to a port....
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (x86_64 Ubuntu 9.10) Linux 2.6.36
^ ^ 21:29:01 up 4 days 4:17 2 users load average: 1.00 1.00 1.00
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺!
- » what causes slow ssh connection and slow mysql connection on local server?
- — Next thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum