In this post, I will describe how to check out the most recent openssh sources from the git repository and compile.
First, let's install necessary packages,
$ sudo apt-get install -y git autoconf libssl-dev zlib1g-dev
To clone from the git repository,
$ git clone git://anongit.mindrot.org/openssh.git
Next, go into the directory and read the instruction.
$ cd openssh
$ less INSTALL
Now that you are familiar with the instruction, let's go on. Create the configure file
Create the build directory and enter
$ mkdir build && cd build
$ make -j 2
Here, I am utilizing two cores, so the number 2 after -j option, but if you have an quad-core processor, you may want to use -j 4 option instead.
That's it. Let's verify that it is successful.
$ ssh -V
The two should output different!