SSH: Use new banner and tempio (#1800)

* SSH: Use new banner and tempio

* fix change for tests

* Update ssh/build.json

Co-authored-by: Franck Nijhof <git@frenck.dev>

* fix build

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Pascal Vizeli
2021-02-02 19:05:08 +01:00
committed by GitHub
parent e29eed1e76
commit 1abda8bfed
15 changed files with 68 additions and 71 deletions

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
export PS1="\W \$ "
export SUPERVISOR_TOKEN={{ .supervisor_token }}
ha banner

View File

@@ -0,0 +1,26 @@
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# Logging
LogLevel INFO
# Default
AllowTcpForwarding {{ if .server.tcp_forwarding }}yes{{ else }}no{{ end }}
GatewayPorts no
X11Forwarding no
Subsystem sftp /usr/lib/ssh/sftp-server
# Authentication:
PermitRootLogin yes
Banner none
PrintMotd no
{{ if .authorized_keys }}
PasswordAuthentication no
{{ else if .password }}
PasswordAuthentication yes
PermitEmptyPasswords no
{{ end }}