I have a problem when connecting via ssh by name. I have 1 main computer (Gigabyte) and other 4 extra computers (Odroids). I am running Ubuntu in all of them. I have the computers in a network using a router, so when I ssh one of the odroids I do:
If I have the router connected to internet, I can ssh all the machines by name. But if the router is not connected to internet I cannot ssh the last machine. So:
doesn't work. And this happens with two routers I have. They are Buffalo routers. On the other hand I can connect to odroid4 by ip address.
If I use
ssh -vvv firstname.lastname@example.org I notice that the ip address is not correct, it gives me:
debug1: Connecting to odroid4.local [192.168.11.1] port 22. debug1: connect to address 192.168.11.1 port 22: Connection refused ssh: connect to host odroid4.local port 22: Connection refused
192.168.11.1 is not the ip address of any machine. I think I am missing some configuration either in the routers or on the computers but I don't know what.