Salut,
Je voulais me connecter à mon serveur distant, je lance donc ssh, mais là :
$ ssh user@machine
ssh: Could not resolve hostname nisrine: Name or service not known
Euh…
Je fais un :
$ cat /etc/hosts
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
127.0.0.1 localhost
127.0.1.1 machinelocale.localdomain machinelocale
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Mais où sont passés mes trois serveurs déclarés il y a quelques jours, avant mon reboot de ce soir ?
Il faut cliquer sur un bouton [SAVE] sur Windows pour que ça sauve les fichiers WSL 2 ? ^^
//EDIT : il semblerait qu’on doive mettre generateHosts à false dans /etc/wsl.conf
https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/#section-network