ssh蜜罐 - 允许22端口链接很慢中断

date
May 12, 2022
slug
newservice-ssh-endlessh
status
Published
summary
新服务 endlessh 安全
tags
service
type
Post
URL

Summary

步骤

 
mkdir -p /data/endlessh && cd /data/endlessh
cat > docker-compose.yml <<EOF
version: "2.1"
services:
  endlessh:
    image: lscr.io/linuxserver/endlessh:latest
    container_name: endlessh
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - MSDELAY=10000 #optional
      - MAXLINES=32 #optional
      - MAXCLIENTS=4096 #optional
      - LOGFILE=true #optional
      - BINDFAMILY= #optional
    volumes:
      - ./config:/config #optional
    ports:
      - 22:2222
    restart: unless-stopped
EOF

ufw allow 22

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs

tail -f config/logs/endlessh/current
notion image
notion image

#2

验证

notion image

© Ying Bun 2021 - 2024