SSH in Docker for Bastion Host

 openssh-server:
    image: linuxserver/openssh-server
    container_name: openssh-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Novosibirsk
      - PUBLIC_KEY_FILE=/pubkeys
      - SUDO_ACCESS=false
      - PASSWORD_ACCESS=false
      - USER_NAME=alpine
      - DOCKER_MODS=linuxserver/mods:openssh-server-ssh-tunnel
    volumes:
      - ./pubkeys:/pubkeys
    ports:
      - 60022:2222

Добавить комментарий

Ваш адрес email не будет опубликован.