Take the 2-minute tour ×

I want to open link like "ssh://username@hostname" with ssh.
I think xdg-open can help me(xdg-open ssh://username@hostname), but I don't know how.
How can i do it?

share|improve this question

3 Answers 3

up vote 7 down vote accepted

What I could gather, you have to register the protocol in the gconf:

gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/enabled true
gconftool-2 --set --type=string /desktop/gnome/url-handlers/ssh/command 'gnome-terminal -e "%s"'


I can't get it to register ssh in chromium though. Haven't tried with firefox, but these instructions should help.

share|improve this answer
thanks for the answer :) –  yltsrc Nov 7 '10 at 12:22
Just a note: This does not work in Gnome 3. I tried. –  Zan Lynx Nov 8 '12 at 19:44

if i understand your question correctly then i think you want to open such link in gui mode. To open such links in nautilus just replace ssh with sftp

open nautilus and type sftp://user@host in address bar and press enter

share|improve this answer

You can open the ssh link on the command line by using ssh username@hostname (I think you know this already) if you want to access it via nautilus in gnome then you can minimise all windows and do [ctrl]+L which will open a dialog. Type in your url ssh://username@hostname and click open.

This should solve most of your problems. xdg-open can only open the url if the url has been mounted somewhere already. Otherwise it can't access the ssh files.

share|improve this answer

Your Answer


