User Tools

Site Tools


wiki:desktop_shortcut_to_open_ssh_tunnel_and_then_open_firefox_tab

This is an old revision of the document!


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.1606585498.txt.gz · Last modified: 2020/11/28 18:44 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