How to access WebFig through SSH ?

Hello,

I was thinking about restricting WebFig to localhost and then access WebFig through SSH for the sake of having one less service open the world.
I was thinking of using something like “ssh -f -N foo@1.2.3.4 -LXXX:127.0.0.1:80” but my attempts failed.

How can you do that, from a Linux host ?

Best regards

It should work, just don’t forget to enable it on RB:

/ip ssh set forwarding-enabled=local

It works !
If I’m not mistaken, too bad WebFig doesn’t show this option, but at least, forwarding-enabled can also be set to both.
Thanks !