Skip to main content

Posts

Showing posts from July 30, 2019

Upgrading SSH in Ubuntu Server

###################################################### apt install build-essential zlib1g-dev libssl-dev mkdir /var/lib/sshd chmod -R 700 /var/lib/sshd/ chown -R root:sys /var/lib/sshd/ useradd -r -U -d /var/lib/sshd/ -c "sshd privsep" -s /bin/false sshd wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz tar -xzf openssh-8.0p1.tar.gz cd openssh-8.0p1/ apt install libpam0g-dev libselinux1-dev ./configure --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh make make install ###################################################### In some cases u will get broken packages when doing the install then you can do the below steps: root@logserver:~# apt install build-essential zlib1g-dev libssl-dev  Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version (12.4ubuntu1). zlib1g-dev is already the newest version