Cahier 2017 groupe n°1 : Différence entre versions
De Wiki d'activités IMA
| Ligne 8 : | Ligne 8 : | ||
apt install ssh | apt install ssh | ||
| + | |||
| + | service ssh stop | ||
| + | |||
| + | vim /etc/ssh/sshd_config | ||
PermitRootLogin Prohibited | PermitRootLogin Prohibited | ||
| − | PermitRootLogin yes | + | PermitRootLogin yes |
| + | |||
| + | service ssh restart | ||
=Configuration DNS= | =Configuration DNS= | ||
| + | |||
| + | apt install bind9 | ||
| + | |||
| + | service bind9 stop | ||
| + | |||
| + | vim /etc/default/bind9 | ||
| + | |||
| + | On modifie : | ||
| + | |||
| + | OPTIONS="-4 -u bind" | ||
| + | |||
| + | vim /etc/bind/dns.goyave.space | ||
| + | |||
| + | |||
| + | $TTL 604800 | ||
| + | @ IN SOA dns.goyave.space. root.goyave.space ( | ||
| + | 2 ; Serial | ||
| + | 604800 ; Refresh | ||
| + | 86400 ; Retry | ||
| + | 2419200 ; Expire | ||
| + | 604800 ) ; Negative Cache TTL | ||
| + | ; | ||
| + | IN NS dns.goyave.space. | ||
| + | ns IN A 193.48.57.182 | ||
| + | www IN A 193.48.57.182 | ||
Version du 13 novembre 2017 à 10:39
Sommaire
Introduction
Cahier des charges
Séance 1 : Installation des routeurs et câblage
Configuration du serveur SSH sur la machine virtuelle
apt install ssh
service ssh stop
vim /etc/ssh/sshd_config
PermitRootLogin Prohibited
PermitRootLogin yes
service ssh restart
Configuration DNS
apt install bind9
service bind9 stop
vim /etc/default/bind9
On modifie :
OPTIONS="-4 -u bind"
vim /etc/bind/dns.goyave.space
$TTL 604800
@ IN SOA dns.goyave.space. root.goyave.space (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS dns.goyave.space.
ns IN A 193.48.57.182
www IN A 193.48.57.182