Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker ssh passthrough docs #13732

Merged
merged 5 commits into from
Dec 2, 2020

Conversation

pat-s
Copy link
Member

@pat-s pat-s commented Nov 28, 2020

As discussed in Discord with @zeripath, a major rewrite and simplification of the docker SSH passthrough docs.

Changelog summary

  • Remove the option to create a softlink for .ssh/authorized_keys → confusing and unstable due to SSH_AUTHORIZED_KEYS_BACKUP option
  • Explain in more details how the SSH request process is happening from start to end
  • Pretty much rewrite the section from scratch in passive voice

Related issues


I am not sure if PR #12626 is valid or not - for me it worked with the current setup on the latest dev version. But this is not necessarliy important for this PR.

@codecov-io
Copy link

codecov-io commented Nov 28, 2020

Codecov Report

Merging #13732 (a99cb1f) into master (7ac8a77) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #13732   +/-   ##
=======================================
  Coverage   42.15%   42.15%           
=======================================
  Files         708      708           
  Lines       77123    77123           
=======================================
+ Hits        32510    32515    +5     
+ Misses      39269    39265    -4     
+ Partials     5344     5343    -1     
Impacted Files Coverage Δ
modules/queue/workerpool.go 60.00% <0.00%> (+1.22%) ⬆️
modules/log/file.go 75.20% <0.00%> (+1.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ac8a77...a99cb1f. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 28, 2020
@techknowlogick techknowlogick added the type/docs This PR mainly updates/creates documentation label Nov 29, 2020
```
ln -s /var/lib/gitea/git/.ssh/authorized_keys /home/git/.ssh/authorized_keys
```bash
ssh -p 2222 -o StrictHostKeyChecking=no [git@127.0.0.1](mailto:git@127.0.0.1) "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this mailto may have snuck in unintentionally.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to remove it - I just used what Gitea already uses in this place.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it.

@TwistTheNeil
Copy link

Thanks for this PR, @pat-s, it helped me get ssh passthrough working :)

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 2, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 2, 2020
@techknowlogick techknowlogick merged commit c3893a8 into go-gitea:master Dec 2, 2020
@pat-s pat-s deleted the ssh-passthrough-docker branch December 3, 2020 05:10
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants