Last active
July 5, 2024 09:44
-
-
Save geraldurbas/6847fd064106f4e425290b15c2e1488c to your computer and use it in GitHub Desktop.
Open SSH Update für Ubuntu 18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install build-essential zlib1g-dev libssl-dev | |
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-9.7p1.tar.gz | |
tar -xzf openssh-9.7p1.tar.gz | |
cd openssh-9.7p1/ | |
sudo apt install libpam0g-dev libselinux1-dev libkrb5-dev | |
./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh | |
make | |
sudo make install | |
# Files landen unter /usr/local/sbin/sshd | |
# Change service File: | |
mv /usr/sbin/sshd /usr/sbin/sshd_bak+version | |
cp /usr/local/sbin/sshd /usr/sbin/sshd | |
## restart Server | |
test von außen: | |
telnet n.n.n.n 22 | |
ssh -v n.n.n.n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment