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
![Share on Facebook Facebook](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Share on Google+ google_plus](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/google_plus.png)
![Share on Reddit reddit](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/reddit.png)
![Pin it with Pinterest pinterest](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/pinterest.png)
![Share on Linkedin linkedin](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/linkedin.png)
![Share by email mail](https://jervis.ws/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/mail.png)