| 1 | These instructions worked for Ubuntu 12.04 and Firefox 15.1 |
| 2 | |
| 3 | * Copy this script in your system |
| 4 | {{{ |
| 5 | #!/bin/sh |
| 6 | eval `echo $1 | sed -r -e 's,(.+)://([A-Za-z0-9_]+@)?([A-Za-z0-9\.]+)(:[0-9]+)?,r="\1";u="\2";h="\3";p="\4",' -e 's,[:@],,g'` |
| 7 | echo protocol=$r, user=$u, host=$h, port=$p |
| 8 | PROTO=$r |
| 9 | USER=$u |
| 10 | HOST=$h |
| 11 | PORT=$p |
| 12 | |
| 13 | |
| 14 | if [ -z "$PORT" ]; |
| 15 | then |
| 16 | /usr/bin/gnome-terminal -e "$PROTO -l $USER $HOST" |
| 17 | else |
| 18 | /usr/bin/gnome-terminal -e "$PROTO -l $USER -p $PORT $HOST" |
| 19 | fi |
| 20 | }}} |
| 21 | * Make the script executable |
| 22 | * Follow [http://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above these instructions]. |
| 23 | |
| 24 | '''Notice''': For some reason the first time you try to access an ssh address it should through a link and not by typing an ssh URL in the location bar. |