mirror of
https://gitea.com/gitea/docs.git
synced 2026-03-27 05:58:30 +07:00
Fix home reference (#281)
~ points to the logged user's home, not to /home Co-authored-by: Diego de Blas Mateo <1613216+DiegoBM@users.noreply.github.com> Reviewed-on: https://gitea.com/gitea/docs/pulls/281 Reviewed-by: TheFox0x7 <thefox0x7@noreply.gitea.com> Co-authored-by: DiegoBM <diegobm@noreply.gitea.com> Co-committed-by: DiegoBM <diegobm@noreply.gitea.com>
This commit is contained in:
@@ -386,7 +386,7 @@ In this option, the idea is that the host simply uses the `authorized_keys` that
|
||||
|
||||
- Please note depending on the local version of ssh you may want to consider using `-t ecdsa` here.
|
||||
|
||||
- `/home/git/.ssh/authorized_keys` on the host now needs to be modified. It needs to act in the same way as `authorized_keys` within the Gitea container. Therefore add the public key of the key you created above ("Gitea Host Key") to `~/git/.ssh/authorized_keys`. As an administrative user on the host run:
|
||||
- `/home/git/.ssh/authorized_keys` on the host now needs to be modified. It needs to act in the same way as `authorized_keys` within the Gitea container. Therefore add the public key of the key you created above ("Gitea Host Key") to `/home/git/.ssh/authorized_keys`. As an administrative user on the host run:
|
||||
|
||||
```bash
|
||||
sudo -u git cat /home/git/.ssh/id_rsa.pub | sudo -u git tee -a /home/git/.ssh/authorized_keys
|
||||
|
||||
Reference in New Issue
Block a user