From abc61a7dc17f94225cb2d7b518fe2f6739fa5ede Mon Sep 17 00:00:00 2001 From: Tirsvad Date: Mon, 12 Oct 2026 11:46:25 +0200 Subject: [PATCH] Publish wiki from the repository --- SSH-and-tokens.-.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SSH-and-tokens.-.md diff --git a/SSH-and-tokens.-.md b/SSH-and-tokens.-.md new file mode 100644 index 0000000..41c1d60 --- /dev/null +++ b/SSH-and-tokens.-.md @@ -0,0 +1,25 @@ +# SSH and tokens + +## SSH access to Gitea + +The framework submodule is fetched over SSH on port **10022**. Before you run the script: + +1. Add your SSH public key to your Gitea account. +2. Connect once by hand so the server's host key is known (the script refuses unknown host keys): + + ```bash + ssh -p 10022 -T git@git.tirsystem.com + ``` + + A message that you have successfully authenticated, without shell access, means it works. + +> **Passphrase keys.** The script never prompts for a passphrase. A key with a passphrase must already be loaded in `ssh-agent` (`ssh-add`). This is tracked in [issue 77](https://git.tirsystem.com/TirSystem-BashScript/RepoFoundry/issues/77). + +## Tokens + +| Token | Key in `.env` | Needed | Type | +| --- | --- | --- | --- | +| Gitea access token | `GITEA_TOKEN` | always | access token with scopes | +| GitHub personal access token | `GITHUB_PAT` | only when you choose GitHub | **classic** personal access token | + +Step by step with pictures: [how to create the access tokens](https://git.tirsystem.com/TirSystem-BashScript/RepoFoundry/src/branch/main/howto/create-access-tokens.md). The exact permissions are under [Token permissions](https://git.tirsystem.com/TirSystem-BashScript/RepoFoundry/src/branch/main/README.md#token-permissions) in the README.