I have a reverse ssh tunnel established between a client and a server computer. The client connects on the server on port 22, and creates a reverse ssh tunnel on port 4030.
After the client computer has created the tunnel, it will sent an email confirming the reverse ssh tunnel connection. I just need a command that will output something that proves that the reverse connection has been established, so I can include it in the email.
How can I do this?