Skip to content

Instantly share code, notes, and snippets.

@dzyphr
dzyphr / openssh_update.sh
Last active July 1, 2024 16:52
Updates to patch the recently found exploit in ssh
wget https://mirrors.gigenet.com/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz
wget https://mirrors.gigenet.com/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz.asc
wget https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/RELEASE_KEY.asc
gpg --import RELEASE_KEY.asc
VerifyResult=$(gpg --verify openssh-9.8p1.tar.gz.asc) # Run gpg verify, store the output in a variable
VerifyStatus=$? # Get exit status of last command executed (0 means success)
if [ $VerifyStatus -eq 0 ]; then
tar xvf openssh-9.8p1.tar.gz

Keybase proof

I hereby claim:

  • I am dzyphr on github.
  • I am grinreaper (https://keybase.io/grinreaper) on keybase.
  • I have a public key ASB_IB0TlClblP6Y8TwSbnLq28f0CbKQ3NVQFzoqA-5HxAo

To claim this, I am signing this object: