R. W. Rodolico wrote: > I need to be able to have an e-mail sent anytime an ssh connection > is made and, preferably, when the session closes. I have tried using > /etc/profile to do this, but it doesn't seem to work. I need it to > be global, but I see nothing in the ssh documentation that allows me > to execute a program on connection. There is a pam module called pam_iptables which is meant to be for adding/removing iptables rules on login/logout. All it actually does is run a shell script for the operation. I don't know what environmental variables are available, but you can always give it a shot. > > Any ideas? > > Rod > >
Attachment:
signature.asc
Description: OpenPGP digital signature