mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
Tighten up a few more OpenSSH options
This commit is contained in:
parent
d49e9fad19
commit
282127fbff
@ -10,7 +10,7 @@ Requires:
|
|||||||
perl (and a unix-style shell)
|
perl (and a unix-style shell)
|
||||||
diff (when a test fail, a diff is shown)
|
diff (when a test fail, a diff is shown)
|
||||||
stunnel (for HTTPS and FTPS tests)
|
stunnel (for HTTPS and FTPS tests)
|
||||||
sshd (for SCP and SFTP tests; OpenSSH ver. 3.9 is known to work)
|
sshd (for SCP and SFTP tests; OpenSSH ver. 3.8 is known to work)
|
||||||
|
|
||||||
TCP ports used:
|
TCP ports used:
|
||||||
|
|
||||||
|
@ -91,6 +91,8 @@ print FILE <<EOF
|
|||||||
# This is a generated file! Do not edit!
|
# This is a generated file! Do not edit!
|
||||||
# OpenSSH sshd configuration file for curl testing
|
# OpenSSH sshd configuration file for curl testing
|
||||||
AllowUsers $username
|
AllowUsers $username
|
||||||
|
DenyUsers
|
||||||
|
DenyGroups
|
||||||
AuthorizedKeysFile $path/curl_client_key.pub
|
AuthorizedKeysFile $path/curl_client_key.pub
|
||||||
HostKey $path/curl_host_dsa_key
|
HostKey $path/curl_host_dsa_key
|
||||||
PidFile $path/.ssh.pid
|
PidFile $path/.ssh.pid
|
||||||
@ -98,6 +100,7 @@ Port $port
|
|||||||
ListenAddress localhost
|
ListenAddress localhost
|
||||||
Protocol 2
|
Protocol 2
|
||||||
AllowTcpForwarding no
|
AllowTcpForwarding no
|
||||||
|
GatewayPorts no
|
||||||
HostbasedAuthentication no
|
HostbasedAuthentication no
|
||||||
IgnoreRhosts yes
|
IgnoreRhosts yes
|
||||||
IgnoreUserKnownHosts yes
|
IgnoreUserKnownHosts yes
|
||||||
@ -111,6 +114,7 @@ StrictModes no
|
|||||||
Subsystem sftp $sftp
|
Subsystem sftp $sftp
|
||||||
UseLogin no
|
UseLogin no
|
||||||
X11Forwarding no
|
X11Forwarding no
|
||||||
|
UsePrivilegeSeparation no
|
||||||
# Newer OpenSSH options
|
# Newer OpenSSH options
|
||||||
UsePam no
|
UsePam no
|
||||||
UseDNS no
|
UseDNS no
|
||||||
|
Loading…
Reference in New Issue
Block a user