diff --git a/install_windows/01_install_backuppc.sh b/install_windows/01_install_backuppc.sh index 9147daf..edfed6d 100755 --- a/install_windows/01_install_backuppc.sh +++ b/install_windows/01_install_backuppc.sh @@ -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="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 + +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