Firefox SSH protocol handler (Linux)

I have a web page that lists servers I need to connect to. This page has several hyper links for each server to key webpages on that host. I wanted to be able to connect using ssh too, at the click of a link. (eg: ssh://myserver.example.com and ssh://user@myserver.example.com)

I started doing a bit of research into this and have been able to set it up!

On Fedora 10:
1. Open Firefox and go to: about:config.
2. Right Click > New > Boolean > Enter the following name “network.protocol-handler.expose.ssh” and then “true”
3. Right Click > New > Boolean > Enter the following name “network.protocol-handler.external.ssh” and then “true”
4. Right Click > New > Boolean > Enter the following name “network.protocol-handler.warn-external.ssh” and then “false”
5. Right Click > New > String > Enter the following name “network.protocol-handler.app.ssh” and then “firefox-ssh.sh”
6. Close Firefox
7. Create a script here (/usr/local/bin/firefox-ssh.sh) with the following in it:

#!/bin/bash
gnome-terminal -e "ssh echo $1 | sed -e "s/ssh:\/\///""

8. Run chmod +x /usr/local/bin/firefox-ssh.sh
9. Open Firefox and go to a link like ssh://myserver.example.com

(Visited 1,433 times, 1 visits today)
Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.