summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readconf.c2
-rw-r--r--ssh.121
-rw-r--r--ssh_config7
-rw-r--r--ssh_config.519
-rw-r--r--sshd_config2
-rw-r--r--sshd_config.525
6 files changed, 72 insertions, 4 deletions
diff --git a/readconf.c b/readconf.c
index cc1a6338d..dc22360d1 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1797,7 +1797,7 @@ fill_default_options(Options * options)
1797 if (options->forward_x11 == -1) 1797 if (options->forward_x11 == -1)
1798 options->forward_x11 = 0; 1798 options->forward_x11 = 0;
1799 if (options->forward_x11_trusted == -1) 1799 if (options->forward_x11_trusted == -1)
1800 options->forward_x11_trusted = 0; 1800 options->forward_x11_trusted = 1;
1801 if (options->forward_x11_timeout == -1) 1801 if (options->forward_x11_timeout == -1)
1802 options->forward_x11_timeout = 1200; 1802 options->forward_x11_timeout = 1200;
1803 if (options->exit_on_forward_failure == -1) 1803 if (options->exit_on_forward_failure == -1)
diff --git a/ssh.1 b/ssh.1
index 74d965544..7fb9d3040 100644
--- a/ssh.1
+++ b/ssh.1
@@ -760,6 +760,16 @@ directive in
760.Xr ssh_config 5 760.Xr ssh_config 5
761for more information. 761for more information.
762.Pp 762.Pp
763(Debian-specific: X11 forwarding is not subjected to X11 SECURITY extension
764restrictions by default, because too many programs currently crash in this
765mode.
766Set the
767.Cm ForwardX11Trusted
768option to
769.Dq no
770to restore the upstream behaviour.
771This may change in future depending on client-side improvements.)
772.Pp
763.It Fl x 773.It Fl x
764Disables X11 forwarding. 774Disables X11 forwarding.
765.Pp 775.Pp
@@ -768,6 +778,17 @@ Enables trusted X11 forwarding.
768Trusted X11 forwardings are not subjected to the X11 SECURITY extension 778Trusted X11 forwardings are not subjected to the X11 SECURITY extension
769controls. 779controls.
770.Pp 780.Pp
781(Debian-specific: This option does nothing in the default configuration: it
782is equivalent to
783.Dq Cm ForwardX11Trusted No yes ,
784which is the default as described above.
785Set the
786.Cm ForwardX11Trusted
787option to
788.Dq no
789to restore the upstream behaviour.
790This may change in future depending on client-side improvements.)
791.Pp
771.It Fl y 792.It Fl y
772Send log information using the 793Send log information using the
773.Xr syslog 3 794.Xr syslog 3
diff --git a/ssh_config b/ssh_config
index 4e879cd20..5190b06b1 100644
--- a/ssh_config
+++ b/ssh_config
@@ -17,9 +17,10 @@
17# list of available options, their meanings and defaults, please see the 17# list of available options, their meanings and defaults, please see the
18# ssh_config(5) man page. 18# ssh_config(5) man page.
19 19
20# Host * 20Host *
21# ForwardAgent no 21# ForwardAgent no
22# ForwardX11 no 22# ForwardX11 no
23# ForwardX11Trusted yes
23# RhostsRSAAuthentication no 24# RhostsRSAAuthentication no
24# RSAAuthentication yes 25# RSAAuthentication yes
25# PasswordAuthentication yes 26# PasswordAuthentication yes
@@ -50,3 +51,7 @@
50# VisualHostKey no 51# VisualHostKey no
51# ProxyCommand ssh -q -W %h:%p gateway.example.com 52# ProxyCommand ssh -q -W %h:%p gateway.example.com
52# RekeyLimit 1G 1h 53# RekeyLimit 1G 1h
54 SendEnv LANG LC_*
55 HashKnownHosts yes
56 GSSAPIAuthentication yes
57 GSSAPIDelegateCredentials no
diff --git a/ssh_config.5 b/ssh_config.5
index 0f52d1494..51765c99e 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -74,6 +74,22 @@ Since the first obtained value for each parameter is used, more
74host-specific declarations should be given near the beginning of the 74host-specific declarations should be given near the beginning of the
75file, and general defaults at the end. 75file, and general defaults at the end.
76.Pp 76.Pp
77Note that the Debian
78.Ic openssh-client
79package sets several options as standard in
80.Pa /etc/ssh/ssh_config
81which are not the default in
82.Xr ssh 1 :
83.Pp
84.Bl -bullet -offset indent -compact
85.It
86.Cm SendEnv No LANG LC_*
87.It
88.Cm HashKnownHosts No yes
89.It
90.Cm GSSAPIAuthentication No yes
91.El
92.Pp
77The configuration file has the following format: 93The configuration file has the following format:
78.Pp 94.Pp
79Empty lines and lines starting with 95Empty lines and lines starting with
@@ -799,7 +815,8 @@ token used for the session will be set to expire after 20 minutes.
799Remote clients will be refused access after this time. 815Remote clients will be refused access after this time.
800.Pp 816.Pp
801The default is 817The default is
802.Dq no . 818.Dq yes
819(Debian-specific).
803.Pp 820.Pp
804See the X11 SECURITY extension specification for full details on 821See the X11 SECURITY extension specification for full details on
805the restrictions imposed on untrusted clients. 822the restrictions imposed on untrusted clients.
diff --git a/sshd_config b/sshd_config
index f10329840..d103ac55f 100644
--- a/sshd_config
+++ b/sshd_config
@@ -125,7 +125,7 @@ AuthorizedKeysFile .ssh/authorized_keys
125#Banner none 125#Banner none
126 126
127# override default of no subsystems 127# override default of no subsystems
128Subsystem sftp /usr/libexec/sftp-server 128Subsystem sftp /usr/lib/openssh/sftp-server
129 129
130# Example of overriding settings on a per-user basis 130# Example of overriding settings on a per-user basis
131#Match User anoncvs 131#Match User anoncvs
diff --git a/sshd_config.5 b/sshd_config.5
index 4d255e5ce..2387b51b8 100644
--- a/sshd_config.5
+++ b/sshd_config.5
@@ -57,6 +57,31 @@ Arguments may optionally be enclosed in double quotes
57.Pq \&" 57.Pq \&"
58in order to represent arguments containing spaces. 58in order to represent arguments containing spaces.
59.Pp 59.Pp
60Note that the Debian
61.Ic openssh-server
62package sets several options as standard in
63.Pa /etc/ssh/sshd_config
64which are not the default in
65.Xr sshd 8 .
66The exact list depends on whether the package was installed fresh or
67upgraded from various possible previous versions, but includes at least the
68following:
69.Pp
70.Bl -bullet -offset indent -compact
71.It
72.Cm ChallengeResponseAuthentication No no
73.It
74.Cm X11Forwarding No yes
75.It
76.Cm PrintMotd No no
77.It
78.Cm AcceptEnv No LANG LC_*
79.It
80.Cm Subsystem No sftp /usr/lib/openssh/sftp-server
81.It
82.Cm UsePAM No yes
83.El
84.Pp
60The possible 85The possible
61keywords and their meanings are as follows (note that 86keywords and their meanings are as follows (note that
62keywords are case-insensitive and arguments are case-sensitive): 87keywords are case-insensitive and arguments are case-sensitive):