How to check internet speed via SSH on any Linux Environment

Speed test Via SSH on Linux

Testing the speed of the internet via SSH on Linux can be done by below commands

Below are set of commands in python language, These are to be typed in terminal which downloads the script files

wget raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
sudo mv speedtest.py /usr/local/bin/speedtest
sudo chown root:root /usr/local/bin/speedtest

After the installation of the scripts, the test can be done using the command

speedtest

net speed,ssh