-
-
Save unixzen/e33516139f3391a4b063cf835d20729d to your computer and use it in GitHub Desktop.
Revisions
-
prbinu created this gist
Oct 12, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ # on a fresh Ubuntu 16.04 host sudo apt-get update # copy the packages from https://launchpad.net/debian/+source/openssh/1:7.4p1-10+deb9u3 wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1-10.dsc wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1.orig.tar.gz wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1-10.debian.tar.xz tar -zxvf openssh_7.4p1.orig.tar.gz tar -xvf openssh_7.4p1-10.debian.tar.xz # install build dep packages sudo apt-get install -t xenial-backports devscripts autotools-dev debhelper dh-autoreconf dh-exec dh-systemd libaudit-dev libedit-dev libgtk-3-dev libkrb5-dev libpam-dev libselinux1-dev libssl-dev libwrap0-dev zlib1g-dev libsystemd-dev -y sudo apt-get install build-essential fakeroot dpkg-dev dpkg-source -x openssh_7.4p1-10.dsc cd openssh-7.4p1/ dpkg-buildpackage -rfakeroot -b # now package would have been succesfully built on root directory (cd ../) cd .. ls -ltr *.deb # lets install new openssh deb package #stop ssh sudo systemctl stop ssh #install sudo dpkg -i --force-confold openssh-client_7.4p1-10_amd64.deb openssh-server_7.4p1-10_amd64.deb openssh-sftp-server_7.4p1-10_amd64.deb # check the version now ssh -V