Ensure SSH is installed after 01_install_backuppc
This commit is contained in:
parent
1eb5b3f95b
commit
3cc032e857
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue