13 lines
424 B
Bash
13 lines
424 B
Bash
#! /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"
|
|
|