Hitachi

JP1 Version 12 JP1/Network Node Manager i Setup Guide


11.3.2 Configuring Firefox to use SSH on Linux

To configure Firefox on the Linux operating system to use the SSH protocol, follow these steps:

  1. Define the SSH protocol.

    a. Create the /usr/local/bin/nnmssh file with the following contents:

    #!/bin/bash
    #
    # Linux shell script called by Firefox in response to
    # ssh:// URLs for the NNMi SSH menu.
    #
    address=`echo $1 | cut -d : -f 2 | sed 's;/;;g'`
    port=`echo $1 | cut -d : -f 3`
    exec /usr/bin/xterm -e ssh $address $port

    b. Set the script permissions to be executable by everyone:

    chmod 755 /usr/local/bin/nnmssh
  2. Configure Firefox preferences for SSH.

    a. In the Firefox address bar, enter about:config.

    b. Right-click in the preference list, click New, and then click Boolean.

    c. Enter the preference name network.protocol-handler.expose.ssh.

    d. Select the preference value false.

  3. Configure Firefox to use the newly-defined protocol.

    a. Browse to an SSH link.

    You can create a simple HTML file containing the link, or you can use the new SSH menu item that you defined in the NNMi console. Typing the link directly into the address bar does not have the same effect.

    b. In the Launch Application window, click Choose, and then select /usr/local/bin/nnmssh.

    c. Select the Remember my choice for ssh links check box.