how to meter an SSH network usage?

Elias Bachaalany asked:

It may be a simple question, but how can I see how much bandwidth an SSH connection, in Unix and Linux, has consumed since the login time until the SSH session is terminated (logged out)?

Thanks,
Elias

My answer:


Run ssh with at least one -v option, and when you log out you will get something like:

Transferred: sent 4288, received 4428 bytes, in 2.7 seconds

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.