aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar steering72532026-05-12 16:38:51 -0600
committerGravatar steering72532026-05-12 16:38:51 -0600
commit0bad7e56ecdc06086b6d019ce9734d8b3beecaa5 (patch)
tree4e98f041a766414fb2aa0dfb7cb611884ba3cefe
parentgit pull --quiet (diff)
add bind9-dnsutils and dn42 hostkeys
-rwxr-xr-xinstall.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 5dd65f9..2119e5b 100755
--- a/install.sh
+++ b/install.sh
@@ -1,4 +1,4 @@
-ssh-keygen -f /opt/autopeer/id_autopeer
+ssh-keygen -f /opt/autopeer/id_autopeer -N ''
echo "You need to add your new SSH key (/opt/autopeer/id_autopeer) to dn42 gitea to clone the repo:"
cat /opt/autopeer/id_autopeer.pub
echo
@@ -6,12 +6,18 @@ read -p "Press enter once you've done that..."
apt install -y git # you needed this to clone
-apt install -y vim curl wget man-db whois bind9 bird2 # suggestions
+apt install -y vim curl wget man-db whois bind9 bind9-dnsutils bird2 # suggestions
apt install -y python3 wireguard-tools cron socat # dependencies
ln -s /opt/autopeer/sshd_config /etc/ssh/sshd_config.d/autopeer.conf
systemctl reload ssh
addgroup autopeer
adduser --disabled-password --comment '' new
+cat >>/etc/ssh/ssh_known_hosts <<EOF
+git.dn42,git.dn42.dev ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCZ3kp23U/8U/12k462IX0rBAuZIBw9bjoA7olxg1LQPF+akz48sB7E1FAuGTNOFyt2Q4h70j4ksO9o2/L3yeUYeekdRUFkS3K9cReLk1MQYZx3teLT/Nwzu6IKmalZaQgctegqnEJRagoqN/PptU/WUxmvOTR/zamb++XGDiTcjCf24pQNPMpqZqcB2PKZCRoNX19yGngwrugOpTdoqBJQf4wKiejN39CJHPPBgWZoNIrQ2SktgS4o8TquPPFsoVzjV9napKKMCcx5pYACeyLxqotqbLQWSIrgK2WznnMf8aCzgIHNsgO0meUxA2MYlJCZRjTKgedCQ5JinQIdQyp
+git.dn42,git.dn42.dev ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKoCj62akks85kfkX9CPMo1cqIaVMnr43k1AUCIQMSM3Jy6wStCvZVvTkDfnuMdZYVkmbxAOvupK4qXQje7n/eQ=
+git.dn42,git.dn42.dev ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIH0fsmrx1IPJZ/gfV46O6kq1Rry0ZeOrdCa10pohQRG
+EOF
+
git -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" clone git@git.dn42.dev:dn42/registry.git /opt/autopeer/dn42-registry
git -C /opt/autopeer/dn42-registry config core.sshCommand "ssh -i /opt/autopeer/id_autopeer"