Skip to content

Commit 8fc978c

Browse files
committed
require quotes for ssh_permit_root_login variable. Fix #5
1 parent 51eda53 commit 8fc978c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ alias for legacy connections: `alias ssh_ignore="ssh -F /dev/null"`
3636
## Role Variables
3737
* `ssh_sshd_config_dir: /etc/ssh/`
3838
* `ssh_sshd_config_path: "{{ ssh_sshd_config_dir }}sshd_config"`
39-
* `ssh_permit_root_login: without-password`
39+
* `ssh_permit_root_login: "without-password"` quotes are mandatory!
4040
* `ssh_disable_password_login: true`
4141
* `ssh_remove_deprecated_server_keys: true` disables DSA, ECDSA and regenerate RSA key if <`ssh_host_rsa_key_length`
4242
* `ssh_host_rsa_key_length: 4096`

defaults/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# defaults file for secure-ssh
33
ssh_sshd_config_dir: /etc/ssh/
44
ssh_sshd_config_path: "{{ ssh_sshd_config_dir }}sshd_config"
5-
# help for ssh_permit_root_login: yes / no / without-password / forced-commands-only
6-
ssh_permit_root_login: without-password
5+
# help for ssh_permit_root_login: "yes" / "no" / "without-password" / "forced-commands-only"
6+
# don't forget the quotes! (see https://github.com/elnappo/ansible-role-secure-openssh-server/issues/5)
7+
ssh_permit_root_login: "without-password"
78
ssh_disable_password_login: true
89
ssh_remove_deprecated_server_keys: true
910
ssh_host_rsa_key_length: 4096

0 commit comments

Comments
 (0)