Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
common
Commits
d4a29b7b
Commit
d4a29b7b
authored
6 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
ssh-server: allow disabling ssh password auth
parent
d6ba4a46
No related branches found
No related tags found
No related merge requests found
Pipeline
#249
failed
6 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ssh-server/defaults/main.yml
+1
-0
1 addition, 0 deletions
ssh-server/defaults/main.yml
ssh-server/templates/sshd_config.j2
+1
-1
1 addition, 1 deletion
ssh-server/templates/sshd_config.j2
ssh-server/templates/sshd_config_stretch.j2
+1
-1
1 addition, 1 deletion
ssh-server/templates/sshd_config_stretch.j2
with
3 additions
and
2 deletions
ssh-server/defaults/main.yml
+
1
−
0
View file @
d4a29b7b
...
...
@@ -4,6 +4,7 @@
ssh_authorized_keys
:
"
{{
inventory_dir
}}/files/keys"
ssh_mkhomedir
:
yes
ssh_strong_crypto
:
yes
ssh_password_auth
:
yes
ssh_gssapi
:
yes
ssh_sftp_options
:
"
"
ssh_allow_groups
:
[]
This diff is collapsed.
Click to expand it.
ssh-server/templates/sshd_config.j2
+
1
−
1
View file @
d4a29b7b
...
...
@@ -52,7 +52,7 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#
PasswordAuthentication
yes
PasswordAuthentication
{{ 'yes' if ssh_password_auth else 'no' }}
# Kerberos options
#KerberosAuthentication no
...
...
This diff is collapsed.
Click to expand it.
ssh-server/templates/sshd_config_stretch.j2
+
1
−
1
View file @
d4a29b7b
...
...
@@ -44,7 +44,7 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#
PasswordAuthentication
yes
PasswordAuthentication
{{ 'yes' if ssh_password_auth else 'no' }}
# Kerberos options
#KerberosAuthentication no
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment