You are not logged in.
Pages: 1
Can someone tell me how to create an SSH session launcher?
I would like to create a desktop launcher that will open a terminal and run "ssh -p22 user@url.com"
I've tried using xfce4-terminal with the "-H" and "-x" options but, they fail.
Offline
Graphically, right click the desktop, select "Create Launcher". Then fill in your command "ssh -p22 user@url.com", give it a name, and select “Run in terminal”.
Or, you can create a text file ~/Desktop/my_launcher.desktop with the content:
[Desktop Entry]
Version=1.0
Type=Application
Name=MyLauncher
Exec=ssh -p22 user@url.com
Terminal=true
Offline
So, lets add a twist.... Let's say I want to knock first-
ssh -p8888 url.com;ssh -p22 user@url.com
This fails...
Offline
From .desktop files you can only execute one command. But you can execute bash with a script or with a string of commands with the -c option:
[Desktop Entry]
Version=1.0
Type=Application
Name=Test
Exec=bash -c "ssh -p8888 url.com; sleep 10; ssh -p22 user@url.com"
Terminal=true
Tune the sleep time as needed.
Offline
Try this on the Exec line instead:
bash -c "ssh -p8888 url.com; sleep 10; ssh -p22 user@url.com; bash"
Might at least show any errors if they exist.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Pages: 1
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 529.03 KiB (Peak: 530.31 KiB) ]