Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Just 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •