refine comment a tad

This commit is contained in:
Harald Sitter
2024-11-03 19:30:05 +01:00
parent 38ada50675
commit 5da433f90b
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ func connectToHost(user, host, identity string) (*ssh.Client, *ssh.Session, erro
log.Fatalf("unable to parse private key: %v", err)
}
// `ssh-keyscan origin.files.kde.org` to get the host key
// You can use `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,6 +20,7 @@ go -C ./upload-vacuum/ build -o upload-vacuum .
export GNUPGHOME="$PWD/.secure_files/gpg"
gpg --no-options --homedir="$GNUPGHOME" --import "$PWD/.secure_files/gpg.private.key"
REMOTE=$SSH_USER@$SSH_HOST:$SSH_PATH
# You can use `ssh-keyscan origin.files.kde.org` to get the host key
echo "origin.files.kde.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUjdH4S7otYIdLUkOZK+owIiByjNQPzGi7GQ5HOWjO6" >> ~/.ssh/known_hosts
scp -i "$SSH_IDENTITY" "$REMOTE/SHA256SUMS" SHA256SUMS || true