Changes between Initial Version and Version 1 of HowTo/EnableSSHLinksFirefoxUbuntu


Ignore:
Timestamp:
10/10/12 07:15:01 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/EnableSSHLinksFirefoxUbuntu

    v1 v1  
     1 These instructions worked for Ubuntu 12.04 and Firefox 15.1
     2
     3  * Copy this script in your system
     4{{{
     5#!/bin/sh
     6eval `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'`
     7echo protocol=$r, user=$u, host=$h, port=$p
     8PROTO=$r
     9USER=$u
     10HOST=$h
     11PORT=$p
     12
     13
     14if [ -z "$PORT" ];
     15then
     16  /usr/bin/gnome-terminal -e "$PROTO -l $USER $HOST"
     17else
     18  /usr/bin/gnome-terminal -e "$PROTO -l $USER -p  $PORT $HOST"
     19fi
     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.