oizys/hosts/algiz/README.md

31 lines
894 B
Markdown
Raw Normal View History

2024-01-29 08:57:18 -06:00
<div align="center">
<img src="https://upload.wikimedia.org/wikipedia/commons/d/df/Runic_letter_algiz.svg">
2024-01-29 10:31:18 -06:00
<h1>algiz</h1>
2024-01-29 08:57:18 -06:00
</div>
## Setting up git user for use with gitea originally
```sh
2024-01-23 11:51:13 -06:00
sudo -u git ssh-keygen -t rsa -b 4096 -C "Gitea Host Key"
sudo -u git cat /home/git/.ssh/id_rsa.pub | sudo -u git tee -a /home/git/.ssh/authorized_keys
sudo -u git chmod 600 /home/git/.ssh/authorized_keys
2024-01-29 08:57:18 -06:00
```
2024-01-23 11:51:13 -06:00
2024-01-29 09:37:00 -06:00
`/home/git/.ssh/authorized_keys` should look like this:
2024-01-29 08:57:18 -06:00
```txt
2024-01-23 11:51:13 -06:00
# SSH pubkey from git user
ssh-rsa <Gitea Host Key>
# other keys from users
command="/usr/local/bin/gitea --config=/data/gitea/conf/app.ini serv key-1",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty <user pubkey>
```
2024-01-29 09:37:00 -06:00
To point gitea/forgejo to the shim gitea binary for SSH I symlink the current system version to `/usr/local/bin/gitea`.
```sh
ln -s /run/current-system/sw/bin/gitea /usr/local/bin/gitea
```
2024-01-23 11:51:13 -06:00