The caseI'm used to set up automatic reverse ssh tunnels to remote computers via my server with cron.Usually I use the following entry:@reboot sleep 300 && ssh -MNf -R xxx22:host:22 user@server.comI want to detect when such connection happens. I would like to have some script invoked automatically on connect event.The problemHowever because of -N option standard SSH's tools (ones I'm aware about) do not work.i.e. /etc/ssh/sshrc, ForceCommand and similar configuration features won't help me.QuestionSo is there anything inside of SSH itself to help me or should I dig into greping logs/iptables/whatever to deal with the issue?
How to get informed about EVERY incoming ssh connection (e.g. with no remote command specified)
security;login;ssh tunneling;sshd;tunneling