Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4503

How to correctly update OpenSSH version on virtual machine

$
0
0

I am currently running Ubuntu 22.04.4 LTS with ssh version:

OpenSSH_8.9p1 Ubuntu-3ubuntu0.10, OpenSSL 3.0.2 15 Mar 2022

I want to update the current OpenSSH version to 9.2 or latter. This is requirement in order to setup PDC with my grafana server.

I have found a simmillar post:

Upgrade OpenSSH from v8.9 to v9.3 on 22.04.2 LTS?

However, I am just slightly concerned whether that is correct. In particular:

sudo systemctl stop sshdsudo apt-get remove openssh-server openssh-client

Is it safe to execute those commands on a virtual server that I am connect via SSH? Will I not be disconnected from the VM?

There is also another post:Is possible to upgrade openssh-server OpenSSH_7.6p1, to OpenSSH_8.0p1?

That explains how to update OpenSSH version but different method:

sudo apt updatesudo apt install build-essential zlib1g-dev libssl-devsudo mkdir /var/lib/sshdsudo 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.9p1.tar.gztar -xzf openssh-8.9p1.tar.gzcd openssh-8.9p1/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/sshmakesudo make install

I would like to clarify which process is the most optimal and safe to use to update OpenSSH on the client that I am currently connected via SSH


Viewing all articles
Browse latest Browse all 4503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>