oscarmlage oscarmlage

Single: Default

TIL: How to SSH shim a dockerized Gitea by passing SSH through from the host to the container.

On host:

1. Share user (GID/UID) with the container env
2. Add new keys and mount .ssh as new volume
3. Mock the gitea binary on host to pass the SSH original command to the container

For the client:

1. Optionally add a new key to interact with the server
2. Add the pubkey to Gitea using the web interface
3. Be sure you're using the key and enjoy your clone :)