{{tag>ssh desktop}} ====== 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 ; 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 ==== https://askubuntu.com/questions/181969/script-to-establish-ssh-tunnel-and-then-run-another-program-that-uses-the-tunnel