port smoke to go
This commit is contained in:
parent
b0a9d64f4a
commit
9ed44bfd75
20 changed files with 2118 additions and 1573 deletions
|
|
@ -20,6 +20,11 @@ func TestSshdGuestConfig_Hardened(t *testing.T) {
|
|||
"PasswordAuthentication no",
|
||||
"KbdInteractiveAuthentication no",
|
||||
"AuthorizedKeysFile /root/.ssh/authorized_keys",
|
||||
// Quiet-login: short-lived sandboxes don't need the Debian
|
||||
// MOTD or the "Last login" line. .hushlogin in /root covers
|
||||
// pam_motd; these two cover sshd's own paths.
|
||||
"PrintMotd no",
|
||||
"PrintLastLog no",
|
||||
}
|
||||
for _, line := range mustContain {
|
||||
if !strings.Contains(cfg, line) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue