ssh-mime.html 3.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
<!--
   EMULAB-COPYRIGHT
   Copyright (c) 2000-2003 University of Utah and the Flux Group.
   All rights reserved.
  -->
<center>
<h2>SSH to Node</h2>
</center>

<p>
Clicking "SSH to Node" in the Node Options page will send your browser
a "text/x-testbed-ssh" ".tbc" file. In FreeBSD or Linux, you can save
the file and pass it as an argument to <code>ssh-mime.pl</code> or
associate it with <code>ssh-mime.pl</code> in your web browser. You
can download the <code>ssh-mime.pl </code><a href="ssh-mime.pl">Perl
program here</a>.
</p>

<p>
<font size='+1'><b>Instructions for Linux/FreeBSD:</b></font>
<ul>
<li>Move the <code>ssh-mime.pl</code> script into 
    a directory of your choice (<code>/usr/local/bin</code>, 
    or <code>~/bin</code> are two good places.)</li>
<li>Set up your browser to handle MIME type "text/x-testbed-ssh"
    as outlined below.</li>
<li>In the Web Interface Node view, click on the "SSH to Node" link.</li>
<li>If your browser is properly configured to use <code>ssh-mime.pl</code>,
    a new xterm window with an ssh session open to your node
    should emerge.</li>
</ul>
</li>

<ul>
  <li><font size='+1'><b>Linux/FreeBSD and Netscape 4.7:</b></font>
  <ul>
  <li>Choose <code>preferences</code> from the <code>edit</code> menu.</li>
  <li>Select <code>Navigator</code>, then <code>Applications</code> under
      it.</li>
  <li>Click the <code>New...</code> button.</li>
  <li>In the <code>MIMEType</code> box, type <code>text/x-testbed-ssh</code>
      </li>
  <li>In the <code>Suffixes</code> box, type <code>tbc</code></li>
  <li>Choose <code>Application</code> in the <code>Handled by</code>
      box</li>
  <li>Next to <code>Application</code>, either type the path to the
      <code>ssh-mime.pl</code> script, or use <code>Choose...</code> to find
      it.</li>
  <li>Now, <b>be sure to</b> put a space, then <code>%s</code> after the
      path to the application in the box. This tells netscape to actually
      pass the control file into ssh-mime.pl (Mozilla does not require this;
      see below.)</li>
  <li>Click <code>OK</code>, then <code>OK</code> again.</li>
  </ul> 
  </li>

  <li><font size='+1'><b>Linux/FreeBSD and Mozilla:</b></font>
  <ul>
  <li>Choose <code>preferences</code> from the <code>edit</code> menu.</li>
  <li>Select <code>Navigator</code>, then <code>Helper Applications</code> 
      under it.</li>
  <li>Click the <code>New Type...</code> button.</li>
  <li>In the <code>MIMEType</code> box, 
      type <code>text/x-testbed-ssh</code></li>
  <li>In the <code>File extension</code> box, type <code>tbc</code></li>
  <li>For <code>Application to use</code>, either type the path to the
      <code>ssh-mime.pl</code> script, or use <code>Choose...</code> to find
      it.</li>
  <li>In Mozilla do <b>not</b> add a <code>%s</code>.</li>
  <li>Click <code>OK</code>, then <code>OK</code> again.</li>
  </ul>
  </li>

  <li><font size='+1'><b>Linux/FreeBSD and Opera:</b></font>
  <ul>
  <li>Choose <code>preferences</code> from the <code>File</code> menu.</li>
  <li>Select <code>Applications</code>, then <code>File Types</code> 
      under it.</li>
  <li>Click the <code>New ...</code> button.</li>
  <li>In the <code>MIMEType</code> box, 
      type <code>text/x-testbed-ssh</code></li>
  <li>In the <code>File extension</code> box, type <code>tbc</code></li>
  <li>For <code>Open with other application</code>, either type the path to 
      the <code>ssh-mime.pl</code> script, or use <code>Choose...</code> to 
      find it.</li>
  <li>In Opera do <b>not</b> add a <code>%s</code>.</li>
  <li>Click <code>OK</code>, then <code>OK</code> again.</li>
  </ul>
  </li>
</ul>

<font size='+1'><b>Instructions for Windows:</b></font>
<ul>
   <li>Sorry, no windows support yet, although the script is really
   simple, and should be trivially convertable to a windows batch
   file, or even a windows Perl script if you care to install Perl on
   your windows machine. 
</ul>
</p>