docs: add permission notes to SSH Container Passthrough #17347

Merged
mashirozx merged 3 commits from patch-1 into main 2021-10-18 16:26:47 +00:00
mashirozx commented 2021-10-18 03:48:59 +00:00 (Migrated from github.com)

This step is necessary in most cases and should be noted in the docs.

This step is necessary in most cases and should be noted in the docs.
wxiaoguang reviewed 2021-10-18 04:12:09 +00:00
@ -339,3 +345,4 @@
To make the forwarding work, the SSH port of the container (22) needs to be mapped to the host port 2222 in `docker-compose.yml` . Since this port does not need to be exposed to the outside world, it can be mapped to the `localhost` of the host machine:
```bash

I can not understand why we need this step. If the gitea binary doesn't have +x, how can it be started before?

Oh I can see your point ~~ . Then the text should be you should set instead of you may ?

~~I can not understand why we need this step. If the gitea binary doesn't have +x, how can it be started before?~~ Oh I can see your point ~~ . Then the text should be `you should set` instead of `you may` ?
wxiaoguang reviewed 2021-10-18 04:18:17 +00:00
@ -336,3 +337,4 @@
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
```
Here you should also make sure that you've set the permisson of `/app/gitea/gitea` correctly:

Can you help to add a shebang line #!/bin/sh here? In case some users are using non-sh shells.

Can you help to add a shebang line `#!/bin/sh` here? In case some users are using non-sh shells.
wxiaoguang approved these changes 2021-10-18 08:13:56 +00:00
delvh approved these changes 2021-10-18 09:02:53 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17347
No description provided.