diff options
-rw-r--r-- | readconf.c | 2 | ||||
-rw-r--r-- | ssh.1 | 21 | ||||
-rw-r--r-- | ssh_config | 6 | ||||
-rw-r--r-- | ssh_config.5 | 19 | ||||
-rw-r--r-- | sshd_config | 16 | ||||
-rw-r--r-- | sshd_config.5 | 22 |
6 files changed, 77 insertions, 9 deletions
diff --git a/readconf.c b/readconf.c index 50349e238..efcf2d628 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1916,7 +1916,7 @@ fill_default_options(Options * options) | |||
1916 | if (options->forward_x11 == -1) | 1916 | if (options->forward_x11 == -1) |
1917 | options->forward_x11 = 0; | 1917 | options->forward_x11 = 0; |
1918 | if (options->forward_x11_trusted == -1) | 1918 | if (options->forward_x11_trusted == -1) |
1919 | options->forward_x11_trusted = 0; | 1919 | options->forward_x11_trusted = 1; |
1920 | if (options->forward_x11_timeout == -1) | 1920 | if (options->forward_x11_timeout == -1) |
1921 | options->forward_x11_timeout = 1200; | 1921 | options->forward_x11_timeout = 1200; |
1922 | /* | 1922 | /* |
@@ -768,6 +768,16 @@ directive in | |||
768 | .Xr ssh_config 5 | 768 | .Xr ssh_config 5 |
769 | for more information. | 769 | for more information. |
770 | .Pp | 770 | .Pp |
771 | (Debian-specific: X11 forwarding is not subjected to X11 SECURITY extension | ||
772 | restrictions by default, because too many programs currently crash in this | ||
773 | mode. | ||
774 | Set the | ||
775 | .Cm ForwardX11Trusted | ||
776 | option to | ||
777 | .Dq no | ||
778 | to restore the upstream behaviour. | ||
779 | This may change in future depending on client-side improvements.) | ||
780 | .Pp | ||
771 | .It Fl x | 781 | .It Fl x |
772 | Disables X11 forwarding. | 782 | Disables X11 forwarding. |
773 | .Pp | 783 | .Pp |
@@ -776,6 +786,17 @@ Enables trusted X11 forwarding. | |||
776 | Trusted X11 forwardings are not subjected to the X11 SECURITY extension | 786 | Trusted X11 forwardings are not subjected to the X11 SECURITY extension |
777 | controls. | 787 | controls. |
778 | .Pp | 788 | .Pp |
789 | (Debian-specific: This option does nothing in the default configuration: it | ||
790 | is equivalent to | ||
791 | .Dq Cm ForwardX11Trusted No yes , | ||
792 | which is the default as described above. | ||
793 | Set the | ||
794 | .Cm ForwardX11Trusted | ||
795 | option to | ||
796 | .Dq no | ||
797 | to restore the upstream behaviour. | ||
798 | This may change in future depending on client-side improvements.) | ||
799 | .Pp | ||
779 | .It Fl y | 800 | .It Fl y |
780 | Send log information using the | 801 | Send log information using the |
781 | .Xr syslog 3 | 802 | .Xr syslog 3 |
diff --git a/ssh_config b/ssh_config index bcb9f153d..1b676fb2c 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 * | 20 | Host * |
21 | # ForwardAgent no | 21 | # ForwardAgent no |
22 | # ForwardX11 no | 22 | # ForwardX11 no |
23 | # ForwardX11Trusted yes | ||
23 | # PasswordAuthentication yes | 24 | # PasswordAuthentication yes |
24 | # HostbasedAuthentication no | 25 | # HostbasedAuthentication no |
25 | # GSSAPIAuthentication no | 26 | # GSSAPIAuthentication no |
@@ -46,3 +47,6 @@ | |||
46 | # VisualHostKey no | 47 | # VisualHostKey no |
47 | # ProxyCommand ssh -q -W %h:%p gateway.example.com | 48 | # ProxyCommand ssh -q -W %h:%p gateway.example.com |
48 | # RekeyLimit 1G 1h | 49 | # RekeyLimit 1G 1h |
50 | SendEnv LANG LC_* | ||
51 | HashKnownHosts yes | ||
52 | GSSAPIAuthentication yes | ||
diff --git a/ssh_config.5 b/ssh_config.5 index ca0528842..ed6e5d026 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -71,6 +71,22 @@ Since the first obtained value for each parameter is used, more | |||
71 | host-specific declarations should be given near the beginning of the | 71 | host-specific declarations should be given near the beginning of the |
72 | file, and general defaults at the end. | 72 | file, and general defaults at the end. |
73 | .Pp | 73 | .Pp |
74 | Note that the Debian | ||
75 | .Ic openssh-client | ||
76 | package sets several options as standard in | ||
77 | .Pa /etc/ssh/ssh_config | ||
78 | which are not the default in | ||
79 | .Xr ssh 1 : | ||
80 | .Pp | ||
81 | .Bl -bullet -offset indent -compact | ||
82 | .It | ||
83 | .Cm SendEnv No LANG LC_* | ||
84 | .It | ||
85 | .Cm HashKnownHosts No yes | ||
86 | .It | ||
87 | .Cm GSSAPIAuthentication No yes | ||
88 | .El | ||
89 | .Pp | ||
74 | The file contains keyword-argument pairs, one per line. | 90 | The file contains keyword-argument pairs, one per line. |
75 | Lines starting with | 91 | Lines starting with |
76 | .Ql # | 92 | .Ql # |
@@ -690,11 +706,12 @@ elapsed. | |||
690 | .It Cm ForwardX11Trusted | 706 | .It Cm ForwardX11Trusted |
691 | If this option is set to | 707 | If this option is set to |
692 | .Cm yes , | 708 | .Cm yes , |
709 | (the Debian-specific default), | ||
693 | remote X11 clients will have full access to the original X11 display. | 710 | remote X11 clients will have full access to the original X11 display. |
694 | .Pp | 711 | .Pp |
695 | If this option is set to | 712 | If this option is set to |
696 | .Cm no | 713 | .Cm no |
697 | (the default), | 714 | (the upstream default), |
698 | remote X11 clients will be considered untrusted and prevented | 715 | remote X11 clients will be considered untrusted and prevented |
699 | from stealing or tampering with data belonging to trusted X11 | 716 | from stealing or tampering with data belonging to trusted X11 |
700 | clients. | 717 | clients. |
diff --git a/sshd_config b/sshd_config index 86263d713..de9cc9fe2 100644 --- a/sshd_config +++ b/sshd_config | |||
@@ -57,8 +57,9 @@ AuthorizedKeysFile .ssh/authorized_keys | |||
57 | #PasswordAuthentication yes | 57 | #PasswordAuthentication yes |
58 | #PermitEmptyPasswords no | 58 | #PermitEmptyPasswords no |
59 | 59 | ||
60 | # Change to no to disable s/key passwords | 60 | # Change to yes to enable challenge-response passwords (beware issues with |
61 | #ChallengeResponseAuthentication yes | 61 | # some PAM modules and threads) |
62 | ChallengeResponseAuthentication no | ||
62 | 63 | ||
63 | # Kerberos options | 64 | # Kerberos options |
64 | #KerberosAuthentication no | 65 | #KerberosAuthentication no |
@@ -81,16 +82,16 @@ AuthorizedKeysFile .ssh/authorized_keys | |||
81 | # If you just want the PAM account and session checks to run without | 82 | # If you just want the PAM account and session checks to run without |
82 | # PAM authentication, then enable this but set PasswordAuthentication | 83 | # PAM authentication, then enable this but set PasswordAuthentication |
83 | # and ChallengeResponseAuthentication to 'no'. | 84 | # and ChallengeResponseAuthentication to 'no'. |
84 | #UsePAM no | 85 | UsePAM yes |
85 | 86 | ||
86 | #AllowAgentForwarding yes | 87 | #AllowAgentForwarding yes |
87 | #AllowTcpForwarding yes | 88 | #AllowTcpForwarding yes |
88 | #GatewayPorts no | 89 | #GatewayPorts no |
89 | #X11Forwarding no | 90 | X11Forwarding yes |
90 | #X11DisplayOffset 10 | 91 | #X11DisplayOffset 10 |
91 | #X11UseLocalhost yes | 92 | #X11UseLocalhost yes |
92 | #PermitTTY yes | 93 | #PermitTTY yes |
93 | #PrintMotd yes | 94 | PrintMotd no |
94 | #PrintLastLog yes | 95 | #PrintLastLog yes |
95 | #TCPKeepAlive yes | 96 | #TCPKeepAlive yes |
96 | #UseLogin no | 97 | #UseLogin no |
@@ -108,8 +109,11 @@ AuthorizedKeysFile .ssh/authorized_keys | |||
108 | # no default banner path | 109 | # no default banner path |
109 | #Banner none | 110 | #Banner none |
110 | 111 | ||
112 | # Allow client to pass locale environment variables | ||
113 | AcceptEnv LANG LC_* | ||
114 | |||
111 | # override default of no subsystems | 115 | # override default of no subsystems |
112 | Subsystem sftp /usr/libexec/sftp-server | 116 | Subsystem sftp /usr/lib/openssh/sftp-server |
113 | 117 | ||
114 | # Example of overriding settings on a per-user basis | 118 | # Example of overriding settings on a per-user basis |
115 | #Match User anoncvs | 119 | #Match User anoncvs |
diff --git a/sshd_config.5 b/sshd_config.5 index 44b918463..4c7ee4254 100644 --- a/sshd_config.5 +++ b/sshd_config.5 | |||
@@ -56,6 +56,28 @@ Arguments may optionally be enclosed in double quotes | |||
56 | .Pq \&" | 56 | .Pq \&" |
57 | in order to represent arguments containing spaces. | 57 | in order to represent arguments containing spaces. |
58 | .Pp | 58 | .Pp |
59 | Note that the Debian | ||
60 | .Ic openssh-server | ||
61 | package sets several options as standard in | ||
62 | .Pa /etc/ssh/sshd_config | ||
63 | which are not the default in | ||
64 | .Xr sshd 8 : | ||
65 | .Pp | ||
66 | .Bl -bullet -offset indent -compact | ||
67 | .It | ||
68 | .Cm ChallengeResponseAuthentication No no | ||
69 | .It | ||
70 | .Cm X11Forwarding No yes | ||
71 | .It | ||
72 | .Cm PrintMotd No no | ||
73 | .It | ||
74 | .Cm AcceptEnv No LANG LC_* | ||
75 | .It | ||
76 | .Cm Subsystem No sftp /usr/lib/openssh/sftp-server | ||
77 | .It | ||
78 | .Cm UsePAM No yes | ||
79 | .El | ||
80 | .Pp | ||
59 | The possible | 81 | The possible |
60 | keywords and their meanings are as follows (note that | 82 | keywords and their meanings are as follows (note that |
61 | keywords are case-insensitive and arguments are case-sensitive): | 83 | keywords are case-insensitive and arguments are case-sensitive): |