How to Install OpenSSH Latest version on Ubuntu 16.xx and Debain 8
January 11 2017
Installation of the OpenSSH client and server applications is simple. If you want to install OpenSSH server application, and related support files it the Correct way, Open Up a Terminal Using Ctrl+Alt+T and Type the below commands,
$ sudo apt install openssh-client
$ sudo apt install openssh-server
Check your OpenSSH currently installed version,
$ sudo sshd -V
unknown option -- V
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
[-E log_file] [-f config_file] [-g login_grace_time]
[-h host_key_file] [-k key_gen_time] [-o option] [-p port]
[-u len]
If it's up to date then nothing will be done, and Then to Install the latest
Download latest version using wget command and runs the following commands, ./configure, make and make install
$ sudo wget http://mirror.exonetric.net/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz
$ sudo tar -zxvf openssh-7.4p1.tar.gz
$ sudo cd openssh-7.4p1
$ sudo ./configure
You may get some following output,
OpenSSH has been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Manpage format: doc
PAM support: no
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support:
S/KEY support: no
MD5 password support: no
libedit support: no
Solaris process contract support: no
Solaris project support: no
Solaris privilege support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: yes
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Privsep sandbox style: seccomp_filter
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Manpage format: doc
PAM support: no
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support:
S/KEY support: no
MD5 password support: no
libedit support: no
Solaris process contract support: no
Solaris project support: no
Solaris privilege support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: yes
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Privsep sandbox style: seccomp_filter
$ sudo make
$ sudo make install
Run sshd -V or ssh -V and they'll return the version and usage information.
$ sudo sshd -V
unknown option -- V
OpenSSH_7.4p1, OpenSSL 1.0.1f 6 Jan 2014
usage: sshd [-46DdeiqTt] [-C connection_spec] [-c host_cert_file]
[-E log_file] [-f config_file] [-g login_grace_time]
[-h host_key_file] [-o option] [-p port] [-u len]
(or)
$ sudo apt-cache policy openssl
Comments (0)