nixos-config/terranix/tinc-test/README.md

40 lines
479 B
Markdown
Raw Normal View History

2020-01-06 06:37:25 +01:00
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"
```