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

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_ghost_changer_nom_ip [2025/10/03 11:14] Jean-Baptistetech: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 118: Ligne 115:
 systemd-machine-id-setup systemd-machine-id-setup
 </code> </code>
 +
 +SSH
 +
  
 <code bash> <code bash>
Ligne 126: 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 139: 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.1759482850.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki