wiki:HowTo/EnableSSHLinksFirefoxUbuntu

Version 2 (modified by nriga@bbn.com, 12 years ago) (diff)

--

These instructions worked for Ubuntu 12.04 and Firefox 15.1. For comments email help@geni.net

  • Copy this script in your system
    #!/bin/sh
    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'`
    echo protocol=$r, user=$u, host=$h, port=$p
    PROTO=$r
    USER=$u
    HOST=$h
    PORT=$p
    
    
    if [ -z "$PORT" ];
    then
      /usr/bin/gnome-terminal -e "$PROTO -l $USER $HOST"
    else
      /usr/bin/gnome-terminal -e "$PROTO -l $USER -p  $PORT $HOST"
    fi
    
  • Make the script executable
  • Follow these instructions.

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.