Outils pour utilisateurs

Outils du site


tech:notes_ghost_changer_nom_ip

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_ghost_changer_nom_ip [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:notes_ghost_changer_nom_ip [2026/01/14 17:12] (Version actuelle) Jean-Baptiste
Ligne 16: Ligne 16:
 </code> </code>
  
-SSH +
-<code bash> +
-rm -rf /etc/ssh/ssh_host_* +
-</code>+
  
 Hostname Hostname
Ligne 38: Ligne 35:
 </code> </code>
  
-Voir aussi : /sys/class/dmi/id/product_uuid+Voir aussi :  
 +  * /sys/class/dmi/id/product_uuid 
 +  * /sys/class/dmi/id/product_name 
 +Qui peuvent être copiés sur l'image cible pour savoir sur quel matériel l'image a été créée.
  
 Réseau Réseau
Ligne 115: Ligne 115:
 systemd-machine-id-setup systemd-machine-id-setup
 </code> </code>
 +
 +SSH
 +
  
 <code bash> <code bash>
Ligne 123: Ligne 126:
  
 <code bash> <code bash>
-rm /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub +# CHANGER LE HOSTNAME AVANT ! 
-rm /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub + 
-rm /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub+#rm /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub 
 +#rm /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub 
 +#rm /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub
 #ssh-keygen -h -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key #ssh-keygen -h -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key
 #ssh-keygen -h -N '' -t dsa -f /etc/ssh/ssh_host_dsa_key #ssh-keygen -h -N '' -t dsa -f /etc/ssh/ssh_host_dsa_key
 #ssh-keygen -h -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key #ssh-keygen -h -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
 +
 +rm -f /etc/ssh/ssh_host_*
 /usr/bin/ssh-keygen -A /usr/bin/ssh-keygen -A
 </code> </code>
 +
  
 <code bash> <code bash>
Ligne 136: Ligne 144:
 systemctl restart systemd-hostnamed systemctl restart systemd-hostnamed
 </code> </code>
 +
  
 === Changement d'adresse IP === Changement d'adresse IP
tech/notes_ghost_changer_nom_ip.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki