more host changes to use the origin host

This commit is contained in:
Harald Sitter
2024-11-03 19:01:20 +01:00
parent c71fd8aec2
commit 3012a6714a
2 changed files with 3 additions and 3 deletions

View File

@@ -27,8 +27,8 @@ func connectToHost(user, host, identity string) (*ssh.Client, *ssh.Session, erro
log.Fatalf("unable to parse private key: %v", err)
}
// ssh-keyscan files.kde.org to get the host key
_, _, hostKey, _, _, err := ssh.ParseKnownHosts([]byte("files.kde.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUjdH4S7otYIdLUkOZK+owIiByjNQPzGi7GQ5HOWjO6"))
// `ssh-keyscan origin.files.kde.org` to get the host key
_, _, hostKey, _, _, err := ssh.ParseKnownHosts([]byte("origin.files.kde.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUjdH4S7otYIdLUkOZK+owIiByjNQPzGi7GQ5HOWjO6"))
if err != nil {
log.Fatalf("unable to parse host public key: %v", err)
}

View File

@@ -20,7 +20,7 @@ go -C ./upload-vacuum/ build -o upload-vacuum .
export GNUPGHOME="$PWD/.secure_files/gpg"
gpg --no-options --homedir="$GNUPGHOME" --import "$SRCDIR/.secure_files/gpg.private.key"
REMOTE=$SSH_USER@$SSH_HOST:$SSH_PATH
echo "files.kde.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUjdH4S7otYIdLUkOZK+owIiByjNQPzGi7GQ5HOWjO6" >> ~/.ssh/known_hosts
echo "origin.files.kde.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUjdH4S7otYIdLUkOZK+owIiByjNQPzGi7GQ5HOWjO6" >> ~/.ssh/known_hosts
scp -i "$SSH_IDENTITY" "$REMOTE/SHA256SUMS" SHA256SUMS || true
[ -f SHA256SUMS ] || touch SHA256SUMS