How to build openssh 7.4 deb packages for Ubuntu 14.04LTS

2018-01-06 Bertas Linux

Check current installed ssh version:

dpkg -l|grep openssh
ii  openssh-client                   1:6.6p1-2ubuntu2.8                         amd64        secure shell (SSH) client, for secure access to remote machines
ii  openssh-server                   1:6.6p1-2ubuntu2.8                         amd64        secure shell (SSH) server, for secure access from remote machines
ii  openssh-sftp-server              1:6.6p1-2ubuntu2.8                         amd64        secure shell (SSH) sftp server module, for SFTP access from remote machines

telnet localhost 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8

add deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ zesty main restricted to /etc/apt/source.list

apt-get update
 
apt-get install dpkg-dev
 
apt-get source openssh-server
 
cd openssh-7.4p1/

open debian/control, remove libsystemd-dev from Build-Depends

open debian/rules, search for “confflags += –with-systemd” and comment this line

apt-get install 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
 
debuild -b -uc -us

return one folder up

cd ..
 
ls

and there should be openssh-7.4 deb packages.

Install them:

dpkg -i openssh-client_7.4p1-10_amd64.deb openssh-server_7.4p1-10_amd64.deb openssh-sftp-server_7.4p1-10_amd64.deb

ssh restart:

/etc/init.d/ssh restart

check:

telnet localhost 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.4p1 Ubuntu-10

Comments are currently closed.


Powered by WordPress. Designed by elogi.