Results 1 to 2 of 2
Ubuntu 8.04
How would I send an email every time someone logs into openssh? I'm using mailx and my ISP as a SMTP server.
Also I'd like to log/see what ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-04-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 84
OpenSSH send email upon login
Ubuntu 8.04
How would I send an email every time someone logs into openssh? I'm using mailx and my ISP as a SMTP server.
Also I'd like to log/see what failed passwords were rather than just seeing "Failed password for invalid user asdf from 192.168.0.100 port 4304 ssh2" in auth.log.
- 10-05-2008 #2Just Joined!
- Join Date
- Jun 2008
- Posts
- 84
I now receive an email whenever anyone logs into ssh, I added a call to the email script in /etc/bash.bashrc.
When I login using psftp.exe an email isn't sent though. Is it worth it sending an email for psftp, or is sftp not a security risk. How would I go about doing this?


Reply With Quote
