[LXLE] Installation de Avahi.
Distribution de travail : LXLE 18.04
1/ Modification du ‘hostname’.
util01@station66:~$ sudo hostnamectl set-hostname station99.local
2/ Vérification.
util01@station66:~$ hostname
station99.local
3/ Installation de Avahi.
util01@station99:~$ sudo apt-get install avahi-daemon libavahi-client-dev
4/ Mise-à-jour du système de démarrage.
util01@station99:~$ sudo update-rc.d avahi-daemon defaults
5/ Activation de l’accès ssh.
Ouvrir :
/etc/avahi/services/ssh.service
Ajouter :
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h SSH</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
</service>
</service-group>
6/ Redémarrer du système.
7/ Test : ping.
A partir d’un autre ordinateur du réseau :
util01@station66 ~ ping station99.local -c 2
PING station99.local (192.168.1.38) 56(84) bytes of data.
64 bytes from 192.168.1.38 (192.168.1.38): icmp_seq=1 ttl=64 time=0.307 ms
64 bytes from 192.168.1.38 (192.168.1.38): icmp_seq=2 ttl=64 time=0.281 ms
--- station99.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.281/0.294/0.307/0.013 ms
8/ Test : ssh.
A partir d’un autre ordinateur du réseau :
util01@station66 ~ ssh util01@station99.local
util01@station99.local's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-88-generic x86_64)
...
Last login: Mon Apr 6 20:06:24 2020 from 192.168.1.3
util01@station99:~$
Comments are closed, but trackbacks and pingbacks are open.