referefref / ssh-honey-gateway

A simple SSH gateway for deception deployments

Home Page:https://jamesbrine.com.au

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH-Honey-Gateway

image

SSH-Honey-Gateway is a lightweight SSH proxy appliance that decides where to forward SSH connections based on the authentication credentials provided. It can forward connections to a honeypot server for specific credentials or to a real SSH server for other connections. Additionally, it supports allowlisting of IPs or IP ranges that bypass the validation and are forwarded directly to the real SSH server.

ssh-key

Features

  • Credential-Based Forwarding: Forward connections based on provided SSH keys.
  • Allowlisting: Allow specific IPs or IP ranges to bypass validation.
  • Configurable Port: Specify which port the SSH proxy server listens on.
  • Easy Configuration: Simple YAML configuration file for setting up users, keys, and servers.
  • Logging: Log all matched key connections, including datetime and source IP, to a file.

Installation

  1. Clone the repository:

    git clone https://github.com/referefref/ssh-honey-gateway.git
    cd ssh-honey-gateway
  2. Install dependencies: Ensure you have Go installed, then run:

    go mod tidy
  3. Build the application:

    go build
  4. Generate SSH Key Lure and update the config.yaml to point to the private key and public key content:

    ssh-keygen -t rsa -b 2048 -f testkey

About

A simple SSH gateway for deception deployments

https://jamesbrine.com.au

License:Apache License 2.0


Languages

Language:Go 100.0%