Easy Way To Check The SSH Speed Test

User Avatar
πŸ‘€ admin
πŸ”΄ Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
πŸ“… Created: 16 Mar 2022 at 16:03
πŸ‘€ Viewed: 16 times
βœ‰οΈ Send Email


About SSH

The Secure Shell Protocol (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Its most notable applications are remote login and command-line execution.

SSH applications are based on a client–server architecture, connecting an SSH client instance with an SSH server. SSH operates as a layered protocol suite comprising three principal hierarchical components: the transport layer provides server authentication, confidentiality, and integrity; the user authentication protocol validates the user to the server; and the connection protocol multiplexes the encrypted tunnel into multiple logical communication channels.

SSH was designed on Unix-like operating systems, as a replacement for Telnet and for unsecured remote Unix shell protocols, such as the Berkeley Remote Shell (rsh) and the related rlogin and rexec protocols, which all use insecure, plaintext transmission of authentication tokens.

How to check the speed of your ssh connection

Have you ever wondered what is the speed of your ssh connection. For example you are connected to a server in Dubai but you live in London and now you want to know what is the speed if you need to scp something. Well the solution to this problem is called PV.

PV is a terminal-based (command-line based) tool in Linux that allows the monitoring of data being sent through pipe. The full form of PV command is Pipe Viewer. PV helps the user by giving him a visual display of the following,
Time Elapsed
Completed Progress (percentage bar)
Current data transfer speed (also referred to as throughput rate)
Data Transferred
ETA (Estimated Time) (Remaining time)Γ—

So how to install in debian or ubuntu?


apt install pvapt install pv

And now how to check you ssh speed? (SSH SPEED TEST)


yes | pv | ssh remote_host "cat >/dev/null"yes | pv | ssh remote_host "cat >/dev/null"

You will see something like this:


root@webleit:~# yes | pv | ssh remote_host "cat &gt;/dev/null"<br>64.0KiB 0:00:00 &#91;15.4MiB/s] &#91;     &lt;=&gt;root@webleit:~# yes | pv | ssh remote_host "cat &gt;/dev/null"64.0KiB 0:00:00 &#91;15.4MiB/s] &#91;     &lt;=&gt;

The PV command can be used also used to create a copy progress bar like so


pv access.log &gt; $HOME/Documents/access.logpv access.log &gt; $HOME/Documents/access.log

Or for creating a zip file with a progress bar like so


pv access.log | zip&gt;$HOME/Documents/access.zippv access.log | zip&gt;$HOME/Documents/access.zip

And much more :)

https://youtu.be/PwvdFsWe_wE

Another interesting article may be A Easy Way To Install MySQL on Ubuntu Linux

If you want to comment: Login or Register