fix line breaks and some left-over html tags

This commit is contained in:
2020-02-26 21:41:07 +01:00
parent b84d31ae1a
commit 70e56508d8
7 changed files with 21 additions and 25 deletions

View File

@@ -24,14 +24,14 @@ Host src.mehl.mx
HostName src.mehl.mx
User your-username
IdentityFile ~/.ssh/id_rsa_gogs
IdentitiesOnly yes</pre>
IdentitiesOnly yes
```
This forces your client to use the Gogs-specific SSH key for every connection to [src.mehl.mx](https://src.mehl.mx) and not the default one for this IP/server. However, this is only a problem for you as the administrator, not for other users. It took some time for me to find that out :)
**Update**: Its best to use the built-in server if you cannot create a separate user for Gogs and if you depend on using the default `~/.ssh/authorized_keys` file for other use cases than gogs (e.g. to log in). The problems lies in Gogs behaviour: sometimes it rewrites the `authorized_keys` file without being asked to do so, and as a result you cannot log into the users account anymore via SSH! To make the solution easy for you, heres the excerpt of my `custom/conf/app.ini` file:
```ini
```text
[server]
START_SSH_SERVER = true
SSH_PORT = ${DEDICATED_SSH_PORT_FOR_GOGS}