You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ This cookbook provides secure ssh-client and ssh-server configurations.
18
18
19
19
*`['network']['ipv6']['enable']` - true if IPv6 is needed
20
20
*`['ssh'][{'client', 'server'}]['cbc_required']` - true if CBC for ciphers is required. This is usually only necessary, if older M2M mechanism need to communicate with SSH, that don't have any of the configured secure ciphers enabled. CBC is a weak alternative. Anything weaker should be avoided and is thus not available.
21
-
*`['ssh'][{'client', 'server'}]['weak_hmac']` - true if weaker HMAC mechanisms are required. This is usually only necessary, if older M2M mechanism need to communicate with SSH, that don't have any of the configured secure HMACs enabled.
21
+
*`['ssh'][{'client', 'server'}]['weak_hmac']` - true if weaker HMAC mechanisms are required. This is usually only necessary, if older M2M mechanism need to communicate with SSH, that don't have any of the configured secure HMACs enabled.
22
22
*`['ssh'][{'client', 'server'}]['weak_kex']` - true if weaker Key-Exchange (KEX) mechanisms are required. This is usually only necessary, if older M2M mechanism need to communicate with SSH, that don't have any of the configured secure KEXs enabled.
23
23
*`['ssh']['allow_root_with_key']` - `false` to disable root login altogether. Set to `true` to allow root to login via key-based mechanism.
24
24
*`['ssh']['ports']` - ports to which ssh-server should listen to and ssh-client should connect to
@@ -29,6 +29,11 @@ This cookbook provides secure ssh-client and ssh-server configurations.
29
29
*`['ssh']['use_pam']` - `false` to disable pam authentication
30
30
*`['ssh']['print_motd']` - `false` to disable printing of the MOTD
31
31
*`['ssh']['print_last_log']` - `false` to disable display of last login information
32
+
*`default['ssh']['deny_users']` - `[]` to configure `DenyUsers`, if specified login is disallowed for user names that match one of the patterns.
33
+
*`default['ssh']['allow_users']` - `[]` to configure `AllowUsers`, if specified, login is allowed only for user names that match one of the patterns.
34
+
*`default['ssh']['deny_groups']` - `[]` to configure `DenyGroups`, if specified, login is disallowed for users whose primary group or supplementary group list matches one of the patterns.
35
+
*`default['ssh']['allow_groups']` - `[]` to configure `AllowGroups`, if specified, login is allowed only for users whose primary group or supplementary group list matches one of the patterns.
36
+
*`default['ssh']['use_dns']` - `nil` to configure if sshd should look up the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address.
32
37
33
38
## Data Bags
34
39
@@ -40,7 +45,7 @@ This cookbook used to handle authorized keys for the root user, but that support
40
45
41
46
Have users in your `data_bag/users/` directory. This cookbook looks for users inside this folder with a `ssh_rootkey`.
42
47
43
-
Example:
48
+
Example:
44
49
45
50
First you have to find out the ssh-key of the user you want to allow. A typical example for this is
46
51
@@ -66,7 +71,7 @@ You can then access
66
71
## Usage
67
72
68
73
Add the recipes to the run_list:
69
-
74
+
70
75
"recipe[ssh]"
71
76
72
77
This will install ssh-server and ssh-client. You can alternatively choose only one via:
0 commit comments