How to use ssh to run a local command after connection and quit after this local command is executed?
===

The use case for this is to use SSH to establish a temporary port forwarding, run a local command and quit after this, closing the ssh connection.

I repeat, the command has to be run locally, not on the remove site.

For example you have a server in a DMZ and you need to allow an application from your machine to connect to port 8080 of this machine, but you have only SSH access to that machine.

 