I have 3 ssh terminals defined for 3 headless systems on my lan. I can launch them from a host terminal, but I would prefer to create a desktop file for each, so that I could put each one in the launcher menu (with an icon) and not need to go through the step of launching a terminal to launch another terminal.

So, stated simply: How can I create a gnome .desktop file that can launch an ssh session, and leave it open on the desktop?


you can use the following sample .desktop file, save the following contents as somefile.desktop at your desired location, say on desktop.

[Desktop Entry]
Comment=launch ssh session
Exec=gnome-terminal -e 'ssh -X user@ip_of_system1'

Don't forget to make the .desktop file executable.

  • Thanks. I missed the bit about .desktop files being executable. Never found that in the gnome docs... – explainer Nov 12 '14 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.