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.
Also refer to the above answer. I am using Ubuntu 16.x and although ssh -V shows the correct version, telnet keeps showing the old one. After a short search, I found that the sshd service keeps the old version, so I did the following:
sudo cd /usr/sbin
sudo mv sshd sshd.bak # make a copy before overwriting
sudo cp /usr/local/sbin/sshd sshd
Using telnet should now respond with the updated version, but, for safety, a reboot of the server is recommended.
To upgrade OpenSSH from 7.6 to 8.9 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:
Here are the commands to upgrade:
Restart your machine (without it the remote connections are using the old version).
Check new version
Locally
Open a new terminal and run:
Remote
Check if the OpenSSH version has changed from a remote machine:
Look for a line saying
Remote protocol version
. It shows the version.Online
Use sshcheck.com to check the version.
If you search with your apt tool on ubuntu repositories for your version typing
apt search openssh
you will find the packageopenssh-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.
Also refer to the above answer. I am using Ubuntu 16.x and although
ssh -V
shows the correct version,telnet
keeps showing the old one. After a short search, I found that thesshd
service keeps the old version, so I did the following:Using
telnet
should now respond with the updated version, but, for safety, a reboot of the server is recommended.For Ubuntu 20, check your current SSH version;
Then, if you need an upgrade;
You can find all versions here.
Then,
Check your upgraded version;
If it still shows the old version then copy the new version as below.