You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
493 B
Bash
14 lines
493 B
Bash
12 months ago
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
|
||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||
|
cd $SCRIPT_DIR/..
|
||
|
|
||
|
echo "Seeding known_hosts for (nyx|git).tempest.dev"
|
||
|
cat ~/.ssh/known_hosts | grep -E '(nyx|git).tempest.dev' > deploy/.ssh/known_hosts
|
||
|
|
||
|
echo "Generating deploy keys"
|
||
|
ssh-keygen -t ed25519 -f ./deploy/.ssh/id_ed25519 -C "$USER@nixos-deploy"
|
||
|
echo ""
|
||
|
echo "Be sure to copy these keys onto any git servers your flake pulls from and onto machines you want to deploy to"
|