Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sshd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tilman Vatteroth
sshd
Commits
a9e65ab0
Commit
a9e65ab0
authored
Jun 19, 2019
by
Tilman Vatteroth
Browse files
Options
Downloads
Patches
Plain Diff
correct to guidelines
parent
ca2cd7c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
handlers/main.yml
+1
-0
1 addition, 0 deletions
handlers/main.yml
tasks/main.yml
+1
-0
1 addition, 0 deletions
tasks/main.yml
templates/sshd_config.conf.j2
+0
-55
0 additions, 55 deletions
templates/sshd_config.conf.j2
with
3 additions
and
55 deletions
defaults/main.yml
+
1
−
0
View file @
a9e65ab0
---
sshd_port
22
sshd_permit_root_login no
sshd_allow_pubkeys yes
...
...
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
1
−
0
View file @
a9e65ab0
---
-
name
:
start sshd
systemd
:
name
:
sshd
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
1
−
0
View file @
a9e65ab0
---
-
name
:
install openssh-server
apt
:
name
:
openssh-server
...
...
This diff is collapsed.
Click to expand it.
templates/sshd_config.conf.j2
+
0
−
55
View file @
a9e65ab0
...
...
@@ -7,77 +7,22 @@ Port {{ sshd_port }}
ListenAddress {{ item }}
{% endfor %}
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LoginGraceTime 2m
PermitRootLogin {{ 'yes' if sshd_permit_root_login else 'no' }}
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
# Authentication
PubkeyAuthentication {{ 'yes' if sshd_allow_pubkeys else 'no' }}
PasswordAuthentication {{ 'yes' if sshd_allow_passwords else 'no' }}
PermitEmptyPasswords no
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
AllowAgentForwarding {{ 'yes' if sshd_agent_forwarding else 'no' }}
AllowTcpForwarding {{ 'yes' if sshd_tcp_forwarding else 'no' }}
#GatewayPorts no
X11Forwarding {{ 'yes' if sshd_x11_forwarding else 'no' }}
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd {{ 'yes' if sshd_print_motd else 'no' }}
#PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
...
...
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