config sshd
This commit is contained in:
2
files/sshd.conf
Normal file
2
files/sshd.conf
Normal file
@ -0,0 +1,2 @@
|
||||
PasswordAuthentication yes
|
||||
PermitRootLogin yes
|
@ -87,11 +87,8 @@ http_port 3142" >> /etc/squid/squid.conf
|
||||
#faut virer exim, inutile
|
||||
DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y exim4-base exim4-config exim4-daemon-light
|
||||
|
||||
#login ssh avec mot de passe
|
||||
sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/" /etc/ssh/sshd_config
|
||||
if ! grep -q "PasswordAuthentication yes" /etc/ssh/sshd_config 2>/dev/null; then
|
||||
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
|
||||
fi
|
||||
# config sshd
|
||||
cp "${VAGRANT_SRC_DIR}/sshd.conf" /etc/ssh/sshd_config.d/kaz.conf
|
||||
|
||||
# autorisation du routing et augmentation inotify
|
||||
if ! grep -q "net.ipv4.ip_forward" /etc/sysctl.conf 2>/dev/null; then
|
||||
|
Reference in New Issue
Block a user