Skip to content

SSH (22)

The SSH module emulates an SSH server, allowing you to create honeypots that mimic various SSH server implementations, and log login attempts.

AI support

The SSH module can also allow connections and generate a fake environment using AI. You can see an interactive demo at: https://trapster.cloud/en/resources

If you want to use this feature, you need to configure the users parameter.

Configuration

json
"ssh": [
  {
    "port": 2222,
    "version": "SSH-2.0-OpenSSH_8.1p1 Debian-1",
    "banner": null,
    "users": {
        "guest": "guest"
    }
  }
]

Options

OptionTypeDescriptionDefault
portintegerTCP port number for the SSH service22
versionstringSSH version string to present to clients"SSH-2.0-OpenSSH_8.1p1 Debian-1"
bannerstring/nullCustom banner message (if null, no banner is shown)null
usersobjectDictionary of username:password pairs for authentication{}

Example Usage

Basic configuration:

json
"ssh": [
  {
    "port": 22,
    "version": "SSH-2.0-OpenSSH_8.1p1 Debian-1",
    "users": {
        "admin": "admin123"
    }
  }
]

Multiple user configuration:

json
"ssh": [
  {
    "port": 22,
    "version": "SSH-2.0-OpenSSH_8.1p1 Ubuntu-2",
    "banner": "Welcome to Production Server",
    "users": {
        "admin": "admin123",
        "user": "password456",
        "guest": "guest789"
    }
  }
]