User Tools

Site Tools


wiki:desktop_shortcut_to_open_ssh_tunnel_and_then_open_firefox_tab

Desktop shortcut to open SSH tunnel and then open Firefox tab

Example of forwarding local port 8181 to server's 8181 and accessing that via browser.

[Desktop Entry]
Version=1.0
Type=Application
Name=wiki
Comment=
Exec=bash -c "ssh -fNT -L 8181:localhost:8181 <server>; firefox http://localhost:8181"
Icon=
Path=
Terminal=false
StartupNotify=false

This will go into background and you will need to use ps find the pid and kill the tunnel.

References

wiki/desktop_shortcut_to_open_ssh_tunnel_and_then_open_firefox_tab.txt · Last modified: 2021/07/07 09:53 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki