This Python script sets up a simple SSH honeypot using the Paramiko library. The honeypot logs authentication attempts for both password and public key-based logins.
- Logs username and password combinations for failed password-based authentication.
- Logs username and public key pairs for failed public key-based authentication.
- Multithreaded to handle multiple connection attempts simultaneously.
- Uses the Paramiko library for SSH functionality.
- Python 3.x
- Paramiko library
-
Install the required library using the following command:
pip install paramiko
-
Run the script:
python honeypot.py
- The script binds to
0.0.0.0:22
by default. You can modify the script to change the listening address and port.
See the LICENSE.md file for details.
- Hex