diff --git a/upload-vacuum/main.go b/upload-vacuum/main.go index ff0fe21..80c62db 100644 --- a/upload-vacuum/main.go +++ b/upload-vacuum/main.go @@ -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) diff --git a/upload.sh b/upload.sh index 10439df..9eadf26 100755 --- a/upload.sh +++ b/upload.sh @@ -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