Is possible to upgrade openssh-server OpenSSH_7.6p1, to OpenSSH_8.0p1?
Solution 1:
To upgrade openssh from 7.6 to 8.0 on Ubuntu 18.04 (bionic), I followed the instructions given here: How to Install OpenSSH 8.0 Server from Source in Linux.
The version I started with:
$ ssh -V
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
Here are the commands to upgrade:
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-8.4p1.tar.gz
tar -xzf openssh-8.4p1.tar.gz
cd openssh-8.4p1/
sudo apt install libpam0g-dev libselinux1-dev
./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
make
sudo make install
Then opened a new terminal and ran:
$ ssh -V
OpenSSH_8.4p1, OpenSSL 1.1.1 11 Sep 2018
Solution 2:
If you search with your apt tool on ubuntu repositories for your version typing apt search openssh
you will find the package openssh-server/ubuntu-codename version
in green among others packages unrelated to your question.
If this is the version you're looking for (mine shows openssh 1:8.0p11 already), you can install it with sudo apt install openssh-server
as you would normally. However, if you can't find it on ubuntu repositories, you could search for it on official repos or even try to compile it from source code.
Edit: @VinohRc, I misstyped openssh, but edited the answer to the correct name. However, as @Pilot6 said, ubuntu 18.04 still dont have 1.8 version.