Reverse SSH port tuneling

Hello.
I know that Mikrotik has SSH.
But is possible to make also SSH reverse tunnel with port forwarding?
Like when I do from PC:

ssh -NT -R 16022:localhost:22 -i /home/tunel/rsa user@"myserverip"

Does SSH support also options like

-o ExitOnForwardFailure=Yes -o ServerAliveInterval=5

?

Thank you

Sounds unnecessarily complex.
What is the requirement for you the admin or a user…
In plain english without any protocol or config speak…

You need to enable forwarding on Mikrotik device:

/ip/ssh/set forwarding-enabled=[both|local|no|remote];

Wondering if that could be solved easier… What do you want to achieve?

I have a server to which I have connected devices by SSH (Linux SBC) for remote access and managment (the devices are on public internet “over the world”).
Sometimes I use mikrotik before this devices (e.g. for GSM) and I wanted to have also this kind of access for management and trubleshooting (e.g. now one of the devices doesn’t communicate, but the Mikrotik with GSM should be working).

I know that the SSH is not the best option, in future I would like to change it probably to OpenVPN or Wireguard, but now it’s working solution.

Thanks, I will look at it.

It looks like it’s not possible to do this from mikrotik :confused:
Mikrotik has too much striped down the SSH and from the router you can just simply connect to SSH, no port forwarding.
Only solution could be using OpenSSH as docker image in containers…

I would look at wireguard as the way to go.
One could have all devices on the same wireguard subnet easily reachable from the office or if away remotely.