Skip to content

Instantly share code, notes, and snippets.

@d-demirci
Created March 10, 2022 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-demirci/6a46da99c5d2f8d8e7820a83f2497670 to your computer and use it in GitHub Desktop.
Save d-demirci/6a46da99c5d2f8d8e7820a83f2497670 to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt install build-essential zlib1g-dev libssl-dev -y
sudo mkdir /var/lib/sshd
sudo chmod -R 700 /var/lib/sshd/
sudo chown -R root:sys /var/lib/sshd/
wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.4p1.tar.gz
tar -xzf openssh-8.4p1.tar.gz
cd openssh-8.4p1/
sudo apt install libpam0g-dev libselinux1-dev -y
sudo apt install libkrb5-dev -y
./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment