Skip to content

Instantly share code, notes, and snippets.

@dzyphr
Last active July 1, 2024 16:52
Show Gist options
  • Select an option

  • Save dzyphr/ca8910a103113ce64d2598d73652958b to your computer and use it in GitHub Desktop.

Select an option

Save dzyphr/ca8910a103113ce64d2598d73652958b to your computer and use it in GitHub Desktop.
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
else # if gpg verify failed (non zero exit status)
echo "Signature Verification Failed"
fi
cd openssh-9.8p1
./configure --with-md5-passwords
make
sudo make install
ssh -V
@dzyphr
Copy link
Copy Markdown
Author

dzyphr commented Jul 1, 2024

Note that you may need to configure ssh with specific flags.
You can see all the flags by running configure -h in the openssh-9.8p1 directory.
You can add the flags to the ./configure part of the script and re-run it or follow the remaining installation manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment