summaryrefslogtreecommitdiff
path: root/ssh.1
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.1')
-rw-r--r--ssh.157
1 files changed, 37 insertions, 20 deletions
diff --git a/ssh.1 b/ssh.1
index 1f3efca78..27808b1f3 100644
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh.1,v 1.160 2002/06/22 11:51:39 naddy Exp $ 37.\" $OpenBSD: ssh.1,v 1.167 2002/09/27 15:46:21 stevesk Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -48,7 +48,7 @@
48.Op Ar command 48.Op Ar command
49.Pp 49.Pp
50.Nm ssh 50.Nm ssh
51.Op Fl afgknqstvxACNPTX1246 51.Op Fl afgknqstvxACNTX1246
52.Op Fl b Ar bind_address 52.Op Fl b Ar bind_address
53.Op Fl c Ar cipher_spec 53.Op Fl c Ar cipher_spec
54.Op Fl e Ar escape_char 54.Op Fl e Ar escape_char
@@ -353,9 +353,17 @@ the connection is opened.
353The real authentication cookie is never 353The real authentication cookie is never
354sent to the server machine (and no cookies are sent in the plain). 354sent to the server machine (and no cookies are sent in the plain).
355.Pp 355.Pp
356If the user is using an authentication agent, the connection to the agent 356If the
357is automatically forwarded to the remote side unless disabled on 357.Cm ForwardAgent
358the command line or in a configuration file. 358variable is set to
359.Dq yes
360(or, see the description of the
361.Fl A
362and
363.Fl a
364options described later) and
365the user is using an authentication agent, the connection to the agent
366is automatically forwarded to the remote side.
359.Pp 367.Pp
360Forwarding of arbitrary TCP/IP connections over the secure channel can 368Forwarding of arbitrary TCP/IP connections over the secure channel can
361be specified either on the command line or in a configuration file. 369be specified either on the command line or in a configuration file.
@@ -394,6 +402,13 @@ Disables forwarding of the authentication agent connection.
394.It Fl A 402.It Fl A
395Enables forwarding of the authentication agent connection. 403Enables forwarding of the authentication agent connection.
396This can also be specified on a per-host basis in a configuration file. 404This can also be specified on a per-host basis in a configuration file.
405.Pp
406Agent forwarding should be enabled with caution. Users with the
407ability to bypass file permissions on the remote host (for the agent's
408Unix-domain socket) can access the local agent through the forwarded
409connection. An attacker cannot obtain key material from the agent,
410however they can perform operations on the keys that enable them to
411authenticate using the identities loaded into the agent.
397.It Fl b Ar bind_address 412.It Fl b Ar bind_address
398Specify the interface to transmit from on machines with multiple 413Specify the interface to transmit from on machines with multiple
399interfaces or aliased addresses. 414interfaces or aliased addresses.
@@ -515,15 +530,6 @@ command-line flag.
515Port to connect to on the remote host. 530Port to connect to on the remote host.
516This can be specified on a 531This can be specified on a
517per-host basis in the configuration file. 532per-host basis in the configuration file.
518.It Fl P
519Use a non-privileged port for outgoing connections.
520This can be used if a firewall does
521not permit connections from privileged ports.
522Note that this option turns off
523.Cm RhostsAuthentication
524and
525.Cm RhostsRSAAuthentication
526for older servers.
527.It Fl q 533.It Fl q
528Quiet mode. 534Quiet mode.
529Causes all warning and diagnostic messages to be suppressed. 535Causes all warning and diagnostic messages to be suppressed.
@@ -559,6 +565,12 @@ Disables X11 forwarding.
559.It Fl X 565.It Fl X
560Enables X11 forwarding. 566Enables X11 forwarding.
561This can also be specified on a per-host basis in a configuration file. 567This can also be specified on a per-host basis in a configuration file.
568.Pp
569X11 forwarding should be enabled with caution. Users with the ability
570to bypass file permissions on the remote host (for the user's X
571authorization database) can access the local X11 display through the
572forwarded connection. An attacker may then be able to perform
573activities such as keystroke monitoring.
562.It Fl C 574.It Fl C
563Requests compression of all data (including stdin, stdout, stderr, and 575Requests compression of all data (including stdin, stdout, stderr, and
564data for forwarded X11 and TCP/IP connections). 576data for forwarded X11 and TCP/IP connections).
@@ -568,7 +580,7 @@ and the
568.Dq level 580.Dq level
569can be controlled by the 581can be controlled by the
570.Cm CompressionLevel 582.Cm CompressionLevel
571option. 583option for protocol version 1.
572Compression is desirable on modem lines and other 584Compression is desirable on modem lines and other
573slow connections, but will only slow down things on fast networks. 585slow connections, but will only slow down things on fast networks.
574The default value can be set on a host-by-host basis in the 586The default value can be set on a host-by-host basis in the
@@ -714,11 +726,11 @@ to make this work.)
714.It Ev SSH_AUTH_SOCK 726.It Ev SSH_AUTH_SOCK
715Identifies the path of a unix-domain socket used to communicate with the 727Identifies the path of a unix-domain socket used to communicate with the
716agent. 728agent.
717.It Ev SSH_CLIENT 729.It Ev SSH_CONNECTION
718Identifies the client end of the connection. 730Identifies the client and server ends of the connection.
719The variable contains 731The variable contains
720three space-separated values: client ip-address, client port number, 732four space-separated values: client ip-address, client port number,
721and server port number. 733server ip-address and server port number.
722.It Ev SSH_ORIGINAL_COMMAND 734.It Ev SSH_ORIGINAL_COMMAND
723The variable contains the original command line if a forced command 735The variable contains the original command line if a forced command
724is executed. 736is executed.
@@ -742,7 +754,12 @@ reads
742.Pa $HOME/.ssh/environment , 754.Pa $HOME/.ssh/environment ,
743and adds lines of the format 755and adds lines of the format
744.Dq VARNAME=value 756.Dq VARNAME=value
745to the environment. 757to the environment if the file exists and if users are allowed to
758change their environment.
759See the
760.Cm PermitUserEnvironment
761option in
762.Xr sshd_config 5 .
746.Sh FILES 763.Sh FILES
747.Bl -tag -width Ds 764.Bl -tag -width Ds
748.It Pa $HOME/.ssh/known_hosts 765.It Pa $HOME/.ssh/known_hosts