I want to transfer files via ssh, but it's slow. I've read hpn ssh can speed up ssh. However, I don't know how to install it on Ubuntu 20.04. I just find nothing about this subject on the internet!!!!
But I do not recommend to do so because of the fact that the ordinary SSH is proven to be stable and fast enough for years. Its speed is near full bandwidth of LAN while doing file-transfer via SSHfs. The roots of HPN-SSH are in supercomputing, but I do not think that you owning any of it. So speed of ordinary SSH would be enough. If you want to check what is really slow - try SMB/CIFS (Windows file-sharing) to compare.
I know this is an old question but in case anyone else is looking for an answer... So I'm the guy that developed HPN-SSH. HPN-SSH is a series of patches against OpenSSH. It's 100% compatible with OpenSSH because, well, it is OpenSSH with some added features. While these features were developed with high performance networking in mind it was started back when 1Gb connections were still the domain of major research centers. The main thing that HPN-SSH does is let the internal OpenSSH receive buffers be aware of the autotuning TCP receive buffers. This can lead to higher performance especially in if the path has a high BDP. You can read more about it at http://hpnssh.org.
From the comments - really you have two possible methods of HPN-SSH installation:
Follow the recipe for compilation and installation of HPN-SSH may be done by following steps from ArchLinux PKGBUILD.
Use pre-compiled binaries at https://sourceforge.net/projects/hpnssh/files/Debian%20Packages/ . You may want to test them on VM with your current Ubuntu version.
But I do not recommend to do so because of the fact that the ordinary SSH is proven to be stable and fast enough for years. Its speed is near full bandwidth of LAN while doing file-transfer via SSHfs. The roots of HPN-SSH are in supercomputing, but I do not think that you owning any of it. So speed of ordinary SSH would be enough. If you want to check what is really slow - try SMB/CIFS (Windows file-sharing) to compare.
I know this is an old question but in case anyone else is looking for an answer... So I'm the guy that developed HPN-SSH. HPN-SSH is a series of patches against OpenSSH. It's 100% compatible with OpenSSH because, well, it is OpenSSH with some added features. While these features were developed with high performance networking in mind it was started back when 1Gb connections were still the domain of major research centers. The main thing that HPN-SSH does is let the internal OpenSSH receive buffers be aware of the autotuning TCP receive buffers. This can lead to higher performance especially in if the path has a high BDP. You can read more about it at http://hpnssh.org.
We do have a number of prebuilt packages for Debian, Fedora, CentOS, and so forth. You can get those from https://sourceforge.net/projects/hpnssh. You can also get the full git repo from https://github.com/rapier1/openssh-portable. If you really want you can also join the mailing list at [email protected]