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.

7 lines
251 B

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