https://hub.docker.com/r/byte21516/bashpanel
# ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_bashpanel -N ""
# cat ~/.ssh/id_ed25519_bashpanel.pub >> ~/.ssh/authorized_keys
# eval "$(ssh-agent -s)"
# ssh-add ~/.ssh/id_ed25519_bashpanel
The container must be permitted to read the keys. This usually works with these commands:
You need to replace "USER" with your username.
$ chmod 700 /home/USER/.ssh
$ chmod 600 /home/USER/.ssh/id_ed25519_bashpanel
$ chmod 644 /home/USER/.ssh/id_ed25519_bashpanel.pub
You need to replace "USER" with your username.
services:
  bashpanel:
    image: byte21516/bashpanel:latest
    container_name: bashpanel
    restart: unless-stopped
    network_mode: host
    volumes:
      - ./bashpanel-scripts:/app/scripts           # WebUI Upload/Download
      - /home/USER/.ssh/id_ed25519_bashpanel:/root/.ssh/id_ed25519:ro  # Mount SSH-Key read-only
      - /home/USER/.ssh/id_ed25519_bashpanel.pub:/root/.ssh/id_ed25519.pub:ro
    environment:
      - PORT=3001
      - HOST_USER=USER
      - SSH_KEY_PATH=/root/.ssh/id_ed25519
The WebUI is accessible on port 3001.
