TransWikia.com

What's the easiest way to install OpenSSH 7.4 on Ubuntu 16.04?

Ask Ubuntu Asked by Tri Nguyen on November 6, 2021

On Ubuntu 16.04 (Xenial) box, what is the easiest way to install OpenSSH (openssh-client) that is higher than 7.2?

I am aware that I could compile from source, but I was wondering if there’s a way to avoid that.

Is there an officially maintained ppa for that?
I also tried sudo apt-get install -t xenial-backports openssh-client, but that doesn’t have it either.

2 Answers

See instructions to upgrade SSH client to next possible Ubuntu version Yakkety 16.10 with provides SSH 7.3 (with Include config.d/* support):

echo "deb http://old-releases.ubuntu.com/ubuntu yakkety main" > /etc/apt/sources.list.d/yakkety.list
apt-get update
apt-get install -y ssh
rm /etc/apt/sources.list.d/yakkety.list
apt-get update

Answered by panticz on November 6, 2021

An alternative approach is installing the debian packages (although this approach is not ppa related)

https://gist.github.com/stefansundin/0fd6e9de172041817d0b8a75f1ede677

Just bear in mind that by doing this outside of apt then future installation management is messed up. To see what this would affect you can run

apt-cache rdepends openssh-client

and then going forwards when installing one those affected packages you will most likely see an error about the original version of openssh-client being missing . At least that is the behaviour I observed during the writing of some ansible scripts (Initially I upgraded the openssh-client last in the scripts to get around this)

In the error output in that scenario I noticed the output suggested to

apt-get -f install

without specifying a package. I did this, it installed a few bits (which apparently were not to do with openssh-client), and somehow future installs which depend on openssh-client now go through fine without complaining about the fixed version dependency.

Answered by Matt C on November 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP