OpenSSH(d), How to log user's openend channels (tunnels)?

Hi Everyone,

I spent 2 hours digging google, but can’t find answer…

On my personnal server, I created an account for a friend to let him do tcp port forwarding (-L -D) toward external websites on internet.

Well, it works. But for some reason I want/need to log what tunnels he opened.

No guys, using lsof doesn’t work since i’m controling only the server (can see only -R tunnels in that case).

For now, the only place where i can find this info is from debug logs of sshd… Which is not wanted.

Anyone as idea of the century on this ?

Any help apreciated :slight_smile:

I’ve moved this to the https://community.ubuntu.com/c/support-help-requests category because this site isn’t designed to take tech support questions. Sorry. I’d recommend using one of the official support channels listed on the https://community.ubuntu.com/t/finding-help/712 page.