Ensure SSH is installed after 01_install_backuppc

This commit is contained in:
Jeremy Gardais 2016-05-11 11:45:58 +02:00
parent 1eb5b3f95b
commit 3cc032e857
1 changed files with 4 additions and 0 deletions

View File

@ -24,3 +24,7 @@ echo "PasswordAuthentication no" >> /etc/sshd_config # securisation ssh : refus
netsh advfirewall firewall add rule name="SSH-Hole Port 22" dir=in action=allow protocol=TCP localport=22 remoteip=129.20.203.16 profile=domain,private,public # ouverture port pour ssh netsh advfirewall firewall add rule name="SSH-Hole Port 22" dir=in action=allow protocol=TCP localport=22 remoteip=129.20.203.16 profile=domain,private,public # ouverture port pour ssh
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow remoteip=129.20.203.16 profile=domain,private,public # ouverture port pour ping netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow remoteip=129.20.203.16 profile=domain,private,public # ouverture port pour ping
net start sshd # ssh au demarrage net start sshd # ssh au demarrage
if [[ ! -f /cygdrive/c/backuppc_ipr/etc/ssh_host_ecdsa_key.pub ]]; then
printf "Erreur lors de l'installation, merci de relancer avec les droits Administrateur\n"
fi