|
8 | 8 | $ssh_config = '/etc/ssh/ssh_config' |
9 | 9 | $ssh_known_hosts = '/etc/ssh/ssh_known_hosts' |
10 | 10 | $service_name = 'ssh' |
| 11 | + $sftp_server_path = '/usr/lib/openssh/sftp-server' |
11 | 12 | } |
12 | 13 | redhat: { |
13 | 14 | $server_package_name = 'openssh-server' |
|
17 | 18 | $ssh_config = '/etc/ssh/ssh_config' |
18 | 19 | $ssh_known_hosts = '/etc/ssh/ssh_known_hosts' |
19 | 20 | $service_name = 'sshd' |
| 21 | + $sftp_server_path = '/usr/lib/openssh/sftp-server' |
20 | 22 | } |
21 | 23 | freebsd: { |
22 | 24 | $server_package_name = undef |
|
25 | 27 | $ssh_config = '/etc/ssh/ssh_config' |
26 | 28 | $ssh_known_hosts = '/etc/ssh/ssh_known_hosts' |
27 | 29 | $service_name = 'sshd' |
| 30 | + $sftp_server_path = '/usr/lib/openssh/sftp-server' |
28 | 31 | } |
29 | 32 | default: { |
30 | 33 | case $::operatingsystem { |
|
36 | 39 | $ssh_config = '/etc/ssh/ssh_config' |
37 | 40 | $ssh_known_hosts = '/etc/ssh/ssh_known_hosts' |
38 | 41 | $service_name = 'sshd' |
| 42 | + $sftp_server_path = '/usr/lib/misc/sftp-server' |
39 | 43 | } |
40 | 44 | default: { |
41 | 45 | fail("Unsupported platform: ${::osfamily}/${::operatingsystem}") |
|
49 | 53 | 'X11Forwarding' => 'yes', |
50 | 54 | 'PrintMotd' => 'no', |
51 | 55 | 'AcceptEnv' => 'LANG LC_*', |
52 | | - 'Subsystem' => 'sftp /usr/lib/openssh/sftp-server', |
| 56 | + 'Subsystem' => "sftp ${sftp_server_path}", |
53 | 57 | 'UsePAM' => 'yes', |
54 | 58 | } |
55 | 59 |
|
56 | 60 | $ssh_default_options = { |
57 | 61 | 'Host *' => { |
58 | 62 | 'SendEnv' => 'LANG LC_*', |
59 | 63 | 'HashKnownHosts' => 'yes', |
60 | | - 'GSSAPIAuthentication' => 'yes', |
61 | 64 | }, |
62 | 65 | } |
63 | 66 | } |
0 commit comments