tp_ssh mise au point

This commit is contained in:
2020-09-28 11:26:36 +02:00
parent a4c81a00c9
commit 7c5bea1530
3 changed files with 50 additions and 1 deletions

12
eval.sh Normal file
View File

@@ -0,0 +1,12 @@
#! /bin/bash
# this script is meant to be run by ansible
source functions.sh
# check that alias has been tried
addHeader
fileMustContain ~epsi/.ssh/authorized_keys 'ssh-rsa'
fileMustContain ~epsi/.ssh/authorized_keys 'tom@workine'
fileMustContain /etc/ssh/sshd_config ' Allow(Groups|Users)'
fileMustContain /etc/ssh/sshd_config "^PermitRootLogin no"
fileMustContain /etc/ssh/sshd_config "^PasswordAuthentication no"