Better Git SSH passthru system for Gitea server running in Docker container.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
251B

  1. #!/bin/sh
  2. # Gitea SSH server as exposed to host
  3. CONTAINER_SSH_HOST=127.0.0.1
  4. CONTAINER_SSH_PORT=3001
  5. ssh -p $CONTAINER_SSH_PORT -o StrictHostKeyChecking=no git@$CONTAINER_SSH_HOST "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" /app/gitea/gitea $@"