Florian Ermisch
8594cd90ba
add optional `{{source}} to ssh_config
преди 7 години
Michael Mol
345e07c85e
Support Match prioritization
OpenSSH's Match declarations are applied first-match-wins. However, we
can't safely define two Matches that might overlap unless we first sort
the keys, as Python (and Jinja) dicts don't guarantee the order of
dict keys,
We also won't scramble the match sequence every time the user adds,
removes or renames a match, and so we give the user clearer, more
concise diffs as when they apply changes.
Finally, we leave a comment on the Match line identifying where the
Match rule came from, to assist in troubleshooting.
преди 7 години
Adam Mendlik
1284109335
PrintLastLog missing in FreeBSD 11.0
The fix introduced in 678cc9066c
suppresses the PrintLastLog directive for FreeBSD 10.3.
SSH on FreeBSD 11.0 also does not support PrintLastLog, so this
change suppresses it for any version >= 10.3.
преди 7 години
Alexander Weidinger
162705c7ce
Test config before applying it
преди 7 години
Alexander Weidinger
6b23b28f52
Opt-in to enforce RSA key length
преди 7 години
Alexander Weidinger
674216d0ad
openssh.auth_map
преди 7 години
Alexander Weidinger
66c954ed66
Set correct ssh(d)_config_group for *BSD
преди 7 години
ek9
038a51cdc8
manage sshd_config and ssh_config only if pillars are defined
преди 7 години
ek9
c03e29a498
remove Kex,MACs,Ciphers from defaults
преди 7 години
Adam Mendlik
613bea2cac
Add variables for file owner and mode
преди 7 години
Alexander Weidinger
70461403cb
known_hosts: sort IP addresses
in order to prevent unnecessary changes due to
random ordering of dig results.
преди 7 години
Alexander Weidinger
678cc9066c
PrintLastLog missing in FreeBSD 10.3
преди 7 години
ek9
f5a74f3fa0
defaults: enable secure defaults on sshd_config
преди 7 години
Eric Cook
f4ea96f9c1
setup sftp correctly on RedHat-like machines
преди 8 години
Pandu E Poluan
773d9ae092
Apply string-or-list processing to ssh_config
Now ssh_config also accepts string-or-list options, for serveral
keywords.
преди 8 години
Pandu E Poluan
30648d115e
Add macro to handle string or list
Added a macro to handle multivalue options entered in either string
format or list format (with auto joiner).
преди 8 години
Eric Cook
686fc2c4ee
do not set UsePAM on OpenBSD
Upstream opensshd does not support PAM
преди 8 години
Simon Pirschel
1b69ecab2c
fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config
преди 8 години
Simon Pirschel
2a1b8fbc66
fix issue sshd won't start if AddressFamily is specified, because it must be defined before ListenAddress
преди 8 години
Eric Cook
51fd8b1391
fix Subsystem directive on archlinux
преди 8 години
omltorg
de66dbee97
Update name of package containing dig on ArchLinux
преди 8 години
Johannes Löthberg
02b52fa7cf
Add AuthorizedKeysCommand support
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
преди 8 години
Mathieu POTIER
760a2ad277
fix the path to authkeys
Allow user to specify aliased path (with %u)
преди 8 години
Pandu E Poluan
e6603ae62a
Allow moduli to be pulled as file
Added Jinja logic to allow the option to pull the moduli from an online source.
преди 8 години
Lev Lozhkin
781be61881
Convert dig exist check to unless req
преди 8 години
Jonathon Anderson
87057c7c6b
Correct openssh-clients package name for Red Hat
преди 8 години
Niels Abspoel
641851632f
add more authentication options
преди 8 години
Matthieu DERASSE
3542a1f534
Implement Session idle time out
преди 8 години
Eric Cook
dfb04a43b4
set dig_pkg on arch linux for issue #59
преди 8 години
llua
bd8d46d784
add OpenBSD to map.jinja
преди 8 години
Wolodja Wentland
49923a6371
Drop overly opinionated ssh_config defaults
This set of options reflect the ssh_config options that are set by
default on Debian. The way this was set before has the potential to
break exisisting setups that rely on "normal" defaults, rather than the
rather opinionated ones that are now being shipped with this formula.
преди 8 години
Simon Lloyd
daed52de19
Add sshd_config to map.jinja and check if dig command is available before installing 'dig' package.
преди 8 години
Theo Chatzimichos
0abbaac60d
Fix the default Subystem sftp-server path for SLE
преди 8 години
Nigel Sim
1e515b0f5d
make the host option rendering support lists by refactoring the main option rendering code
put the ssh_config Host:* options in the defaults file so they can be overridden
преди 9 години
ketzacoatl
143451eb19
Add support for Host definitions in ssh_config
This gives us the ability to define system-wide definitions for specific Hosts, and their options.
For example, with this in pillar:
```
# this is the place for host-wide SSH config
ssh_config:
...
Hosts:
# this simplifies cloning with custom params
# eg: git clone my-git:foo/bar
my-git:
User: git
HostName: git.example.com
Port: 2222
```
This would add a section in `/etc/ssh/ssh_config`:
```
Host my-git
User git
HostName git.example.com
Port 2222
```
преди 9 години
ek9
33344743b0
Add ability to control SSH server status (default: on)
преди 9 години
abednarik
b813b4b52a
Replaced iteritems deprecated function with items
преди 9 години
abednarik
3791b11380
Added default path for sftp Subsystem in FreeBSD
преди 9 години
POTIER Mathieu
f55445211c
Specify config clause only if defined in pillar.
Signed-off-by: POTIER Mathieu <mathieu.potier@onzeway.eu>
преди 9 години
POTIER Mathieu
dda1fb5128
Put ssh keys on configured path in sshd_config (AuthorizedKeysFile)
Signed-off-by: POTIER Mathieu <mathieu.potier@onzeway.eu>
преди 9 години
Bogdan Radulescu
13cf374efe
Added configuration options for ssh_config
Made a small change to reflect the default sshd_config
преди 9 години
Bogdan Radulescu
fd4381b769
The default value for ServerKeyBits is 1024 both upstream and in distros
преди 9 години
René Jochum
064d489f41
Use iteritems() instead of items().
Signed-off-by: René Jochum <rene@jochums.at>
преди 9 години
René Jochum
a013b79027
Use iteritems() instead of items().
Signed-off-by: René Jochum <rene@jochums.at>
преди 9 години
elfixit
18ba94d0fc
add options to give a key size to generate_key
преди 9 години
Ingo Bente
a927107b28
Adds support to customize /etc/ssh/moduli file
преди 9 години
Ingo Bente
83bb5ac5a0
adds support to harden sshd_config (KeyExchange, Ciphers, MACs)
преди 9 години
Thomas Juberg
6b68c44583
Stop messing up the first line in ssh_known_hosts
преди 9 години
Imran Haider
4dddff0ccd
Fix service name for Arch Linux
преди 9 години
Niels Abspoel
2a68ccac1a
Add option to remove ssh_host_keys
преди 9 години