*** empty log message ***
This commit is contained in:
parent
48be3c9f93
commit
05c872e867
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=10508
1 changed files with 53 additions and 26 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
|
|
||||||
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml,v 1.73 2001/08/30 18:59:28 chern Exp $
|
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/security/chapter.sgml,v 1.74 2001/08/31 00:10:35 chern Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="security">
|
<chapter id="security">
|
||||||
|
|
@ -3077,31 +3077,58 @@ Your identification has been saved in /home/user/.ssh/identity.
|
||||||
<screen>&prompt.user; <userinput>ssh -2 -N -f -L <replaceable>5023:localhost:23 user@foo.bar.com</replaceable></userinput>
|
<screen>&prompt.user; <userinput>ssh -2 -N -f -L <replaceable>5023:localhost:23 user@foo.bar.com</replaceable></userinput>
|
||||||
&prompt.user;</screen>
|
&prompt.user;</screen>
|
||||||
|
|
||||||
<itemizedlist>
|
<para>The <command>ssh</command> command is used with the
|
||||||
<listitem>
|
following options:</para>
|
||||||
<para><emphasis>-2</emphasis> this forces &man.ssh.1 to use version
|
|
||||||
2 of the protocol. (Do not use if you are working with older ssh
|
<variablelist>
|
||||||
servers)</para>
|
<varlistentry>
|
||||||
</listitem>
|
<term><option>-2</option></term>
|
||||||
<listitem>
|
|
||||||
<para><emphasis>-N</emphasis> indicates no command, or tunnel only.
|
<listitem>
|
||||||
If omitted, &man.ssh.1; would initiate a normal session.</para>
|
<para>Forces <command>ssh</command> to use version 2 of
|
||||||
</listitem>
|
the protocol. (Do not use if you are working with older
|
||||||
<listitem><para><emphasis>-f</emphasis> forces &man.ssh.1; to run
|
ssh servers)</para>
|
||||||
in the background.</para>
|
</listitem>
|
||||||
</listitem>
|
</varlistentry>
|
||||||
<listitem>
|
|
||||||
<para><emphasis>-L</emphasis> indicates a local tunnel in
|
<varlistentry>
|
||||||
<replaceable>localport:remotehost:remoteport</replaceable>
|
<term><option>-N</option></term>
|
||||||
fashion.
|
|
||||||
</para>
|
<listitem>
|
||||||
</listitem>
|
<para>Indicates no command, or tunnel only. If omitted,
|
||||||
<listitem>
|
<command>ssh</command> would initiate a normal
|
||||||
<para><replaceable>foo.bar.com</replaceable> is the remote/target
|
session.</para>
|
||||||
SSH server.
|
</listitem>
|
||||||
</para>
|
</varlistentry>
|
||||||
</listitem>
|
|
||||||
</itemizedlist>
|
<varlistentry>
|
||||||
|
<term><option>-f</option></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Forces <command>ssh</command> to run in the
|
||||||
|
background.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-L</option></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Indicates a local tunnel in
|
||||||
|
<replaceable>localport:remotehost:remoteport</replaceable>
|
||||||
|
fashion.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>user@foo.bar.com</option></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>The remote SSH server.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
|
||||||
<para>An SSH tunnel works by creating a listen socket on localhost
|
<para>An SSH tunnel works by creating a listen socket on localhost
|
||||||
on the specified port. It then forwards any connection received
|
on the specified port. It then forwards any connection received
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue