I am not of the IS field so sorry if anything I write here seems pathetic.
Background for this question:
I login to my server with the following command. The second
-L porition is to encrypt data transition through my PC's port 2222, into port-80 dependent software in the server (for example, CMSs like Drupal or DBMSs like PHPmyadmin).
ssh email@example.com -L 22:localhost:22 -L 2222:localhost:80 -i ~/.ssh/key
How could I make sure beyond any doubt, that the second tunneling (i.e of port 80), also takes place and is successful?