Im trying to make a shortcut to login my ssh server:
ssh x.x.x.x
I made the following file:
ssh_home.sh
Made it executable:
sudo chmod +x ./ssh_home
Checked by right clicking properties to check if it was executable and it was..
But whatever I do, when double clicking it, it will launch gedit. I tried "Open With" but no terminal app is shown there. I searched the net but only found a way to link to the file while not integrating it in one "shortcut file"
#! /usr/bin/sh
at the beginning of the file (the first line)?#! /bin/bash
at the start...)ssh_home.sh
and/ssh_home
, which are not the same files./bin/sh
, not/usr/bin/sh
. (/usr/bin/sh
will happen to work on systems where/bin
and/usr/bin
are the same directory; I don't think that's the case for Ubuntu>)