These are all the configuration bits required to make URLs opened on a remote host from an ssh session appear in a browser locally on the client.
It's possible (and easier) to do this with reverse port forwarding rather than reverse socket forward, but I dislike this because it means that anyone on the server can make you open URLs on the client. This way, write access to the socket on the server is required for the ability to open URLs. If you make it 0700
, that means only you can do so effectively.
You need a systemd user service that listens for URLs on a socket and runs xdg-open on them
amelia-crate@amelia-crate-16 ~> systemctl --user cat url-listen
# /home/amelia-crate/.config/systemd/user/url-listen.service