tp_ssh mise au point
This commit is contained in:
12
eval.sh
Normal file
12
eval.sh
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user