Add known host for git.b12f.io

This commit is contained in:
Benjamin Bädorf 2021-06-14 22:43:57 +02:00
parent 1e6c15f28c
commit 8d8645dcb4
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -14,6 +14,7 @@ steps:
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd - echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa - echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
- echo "[git.b12f.io]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ4uaREL7acSSCNAX+voDYl1Kj7JipP62fR5x1UyGP9u" >> ~/.ssh/known_hosts
- echo "Host git.b12f.io" >> ~/.ssh/config - echo "Host git.b12f.io" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config - echo " Port 2222" >> ~/.ssh/config
- chmod -R 600 ~/.ssh - chmod -R 600 ~/.ssh
@ -40,6 +41,7 @@ steps:
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd - echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa - echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
- echo "[git.b12f.io]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ4uaREL7acSSCNAX+voDYl1Kj7JipP62fR5x1UyGP9u" >> ~/.ssh/known_hosts
- echo "Host git.b12f.io" >> ~/.ssh/config - echo "Host git.b12f.io" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config - echo " Port 2222" >> ~/.ssh/config
- chmod -R 600 ~/.ssh - chmod -R 600 ~/.ssh