mirror of
https://github.com/KDE/kde-linux.git
synced 2026-04-23 16:09:48 -04:00
more host changes to use the origin host
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user