orumin / sshheatmap

Docker container of SSHHeatmap https://github.com/meesaltena/SSHHeatmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSHHeatmap container

sshheatmap sshheatmap sshheatmap sshheatmap

What’s this

This is useful container for using SSHHeatmap with other container, like panubo/sshd.

How’to use

  • copy env.sshheatmap.sample to .env.sshheatmap

  • register and get token from ipinfo

  • write your token to API_KEY= in .env.sshheatmap

run commands as below:

docker-compose run --rm SSHHeatmap | sed -n '/<!DOCTYPE html>/,$p' > heatmap.html

docker-compose.yml

example:

version: '2'
services:
  sshd:
    image: panubo/sshd
    container_name: sshd
    volumes:
      - ./authorized_keys:/etc/authorized_keys/orumin:z
      - ./sshd_config:/etc/ssh/sshd_config:z
      - ./keys:/etc/ssh/keys:z
    logging:
      driver: syslog
      options:
        syslog-address: "tcp://syslog:601"
        syslog-facility: auth
        tag: "sshd"
    environment:
      SSH_USERS: "orumin:1000:1000"
    restart: always

  syslog:
    image: balabit/syslog-ng
    container_name: syslog
    volumes:
      - ./syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf:z
      - logs:/var/log
    restart: always

  SSHHeatmap:
    image: orumin/sshheatmap
    build: ./
    container_name: sshheatmap
    env_file: .env.sshheatmap
    volumes:
      - logs:/var/log:ro
    depends_on:
      - syslog

volumes:
  logs:

About

Docker container of SSHHeatmap https://github.com/meesaltena/SSHHeatmap


Languages

Language:Dockerfile 66.9%Language:Shell 33.1%