40 lines
479 B
Markdown
40 lines
479 B
Markdown
|
|
||
|
A setup to test tinc on a hetzner box
|
||
|
|
||
|
# steps
|
||
|
|
||
|
## OPTIONAL: generate fresh ssh keys
|
||
|
|
||
|
```sh
|
||
|
ssh-keygen -P "" -f sshkey
|
||
|
```
|
||
|
|
||
|
## OPTIONAL: generate new tinc keys
|
||
|
|
||
|
```
|
||
|
nix-shell -p tinc_pre --run "tinc --config . generate-keys 4096"
|
||
|
cat *.pub host_file
|
||
|
rm *.pub
|
||
|
```
|
||
|
|
||
|
## generate machine
|
||
|
|
||
|
```sh
|
||
|
cd ./01-terranix
|
||
|
nix-shell --run "create"
|
||
|
```
|
||
|
|
||
|
## provision machine
|
||
|
|
||
|
```sh
|
||
|
cd ./02-build
|
||
|
nix-shell --run deploy-server
|
||
|
```
|
||
|
|
||
|
## cleanup
|
||
|
|
||
|
```sh
|
||
|
cd ./01-terranix
|
||
|
nix-shell --run "clean"
|
||
|
```
|