Can't connect to beaglebone.local

I need to know how to connect to a beaglebone (or beagleboard) with SSH when I connect it to a new network using an ethernet cable as follows:

    $ ssh root@beaglebone.local 

So far, I could access it that way if I know the IP address:

    $ ssh root@<ip_address> 

But I do not always know the IP address of the board in new networks, so I hope to get access to it with a name like beaglebone.local.

Right now, when I try to do this, I get this error:

    "ssh: Could not resolve hostname beaglebone.local: nodename nor servname provided, or not known" 

I checked the hostname and hosts files and added "127.0.0.1 beaglebone" to the hosts on beaglebone, but not sure what else can I do?

    # cat /etc/hostname 
    beaglebone 

    # cat /etc/hosts 
    127.0.0.1        localhost.localdomain                localhost 
    127.0.0.1        beaglebone 
+5
source share
4 answers

beaglebone Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.04.22.img.xz. "beaglebone.local" .

50% "beaglebone.local" ( IP-). , "systemctl status avahi-daemon.service" , - " 255". , " avaihi-daemon.service" , "beaglebone.local".

"journalctl | grep avahi" "Daemon runnin gon PID NNN".

, "" , "ExecStartPre =/bin/rm -f/var/run/avahi-daemon/pid" [] /lib/systemd/system/avahi -daemon.service. "beaglebone.local", 100% .

"" (.. ), , avashi pid avyi , , .

-

+5

. , :

script ( xxx.xxx.xxx - IP) beaglebone beagleboard ( Ethernet DHCP), ip- root. , . , Enter, . , - , , .

for ip in $(seq 1 254); do ssh root@xxx.xxx.xxx.$ip -o ConnectTimeout=5; [ $? -eq 0 ] && echo "xxx.xxx.xxx.$ip UP" || : ; done

1

beaglebone , Bonjour , . , . , , . , .

0

beaglebone.local - Zeroconf. BeagleBone Avahi, , , , "beaglebone", , "beaglebone-2.local".

0

Mac OS X 10.7. "systemctl status avahi-daemon.service" . Mac. Bonjour .

$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
$ sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
0

All Articles