Skip to content

Notifies you of any ssh attempts to your computer, whether the attempts are successful or not. Please fork instead of clone.

License

Notifications You must be signed in to change notification settings

ddcr/SSHMonitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSHMonitor

Notice:

I USUALLY WORK OFF OF MASTER WITHOUT CREATING NEW BRANCHES(A BAD PRACTICE I KNOW), SO IF YOU CLONE AND DO NOT FORK THEN ANY BUGS YOU ENCOUNTER... YOU ARE ON YOUR OWN.

Recently I receieved E-mail notifications around 5am from someone using/testing this software. He didn't check/know that this app sends the notifications to MY E-mail([email protected]) which is set in the crontab. Meanwhile he is probably ranting about how much of an idiot I am and how my code base doesn't work.

I work from my laptop which is running Gentoo on i3wm. Sometimes I use my work computer on a lunch break which runs Debian stable. Sometimes things will work on my Gentoo box but will not work on my Debian install. I catch these "cases" when I am working from my work computer.

Important:

The notify with ui option is broken with Python3. There seems to be an issue with the ctypes system library. See issue #22.

About:

SSHMonitor monitors incoming ssh requests and will notify you on failed, successful or banned(IP via iptables/sshgaurd) attempts whether they're successful or not. PLEASE FORK INSTEAD OF CLONE THIS REPO. I would greatly appreciate it! Also, you are going to need to setup an outgoing E-mail server in order for the program to work.

This program was written using Python version 2.7 but should work for Python versions 3.x as well.


Build program:

[anthony@ghost SSHMonitor]$ sudo python setup.py install

^^ NOTE: Check the Crontab and make sure it was actually created.


You can install sshmonitor via pip as well.

Website: https://pypi.org/project/sshmonitor/

Installation command:

pip install sshmonitor

NOTE: Patch is no longer needed for newer versions of python, namely 3.x.x.

About

Notifies you of any ssh attempts to your computer, whether the attempts are successful or not. Please fork instead of clone.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.0%
  • C 42.9%
  • Shell 4.1%