Beagle bone ssh

2,028 views
Skip to first unread message

Caden Farley

unread,
Jun 22, 2013, 11:01:40 PM6/22/13
to beagl...@googlegroups.com
Hello,
I am able to connect to the built in web server with my BeagleBone Revision A4 through USB, but when I connect the bone to my router and plug it in through ethernet, I try to ssh into it using "ssh ro...@beaglebone.local" and it returns something like "ssh: Could not resolve hostname beaglebone.local: nodename nor servname provided, or not known" I have researched this thoroughly and could not find anything. Please keep in mind that I am a 6th grader, however I have a lot of experience in Unix terminals and C based programming languages.
Thanks,
-thesciencekid8

PS: Do I have to choose between Newbie or Expert for the skill level category? :D

Gerald Coley

unread,
Jun 23, 2013, 9:58:54 AM6/23/13
to beagl...@googlegroups.com
Which BeagleBone board do you have? There are two different boards. One white and one black.

Gerald



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Gerald
 

Caden Farley

unread,
Jun 24, 2013, 5:07:06 PM6/24/13
to beagl...@googlegroups.com
i have a the white one.

Gerald Coley

unread,
Jun 24, 2013, 5:12:16 PM6/24/13
to beagl...@googlegroups.com
Just wanted to make sure. There were a few Rev A4 BBB that went out.

Gerald

Przemek Klosowski

unread,
Jun 24, 2013, 5:28:52 PM6/24/13
to beagl...@googlegroups.com
On Sat, Jun 22, 2013 at 11:01 PM, Caden Farley <thescie...@gmail.com> wrote:
> Hello,
> I am able to connect to the built in web server with my BeagleBone Revision
> A4 through USB, but when I connect the bone to my router and plug it in
> through ethernet, I try to ssh into it using "ssh ro...@beaglebone.local" and
> it returns something like "ssh: Could not resolve hostname beaglebone.local:
> nodename nor servname provided, or not known"

The name 'beaglebone.local' has to be resolved by the DNS system used
by the computer you're connecting from.
Whether this works depends on the details of your internal network
setup and the settings of the software on your BB.
Try ssh ro...@192.168.7.2 as this seems to be the default IP address
used by Angstrom on BB. If that doesn't work,
I would dump the network traffic using something like wireshark to see
what your BB is doing when it boots.

Caden Farley

unread,
Jun 24, 2013, 9:30:24 PM6/24/13
to beagl...@googlegroups.com
Hi, I already tried the IP address a long time ago. As for the wireshark thing, I will look into it, also one more thing you might wanna know... I am able to ssh into the beaglebone with a USB cable and an Ethernet cable both connected to the computer (Mid 2011 iMac dual booted to run Ubuntu), however get a connection timeout when the bone is connected to the router. And yes, I used the ip instead of "beaglebone.local".
Thanks!

Przemek Klosowski

unread,
Jun 24, 2013, 11:21:13 PM6/24/13
to beagl...@googlegroups.com
So here's the plan:
- make sure your BBB booted successfully: are the four blue LEDs
blinking as expected?
- find what IP is the BBB on
- find if SSH service is ready to use, e.g. by doing nmap
<IP-Address-of-your-BBB>
on my system the result is:

PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
3000/tcp open ppp

tee....@gmail.com

unread,
Jun 25, 2013, 5:22:37 AM6/25/13
to beagl...@googlegroups.com
Caden Farley have a White BeagleBone not a Black one.

This mean that the address 192.168.7.2 doesn't work as it's the IP address for the virtual Ethernet on USB.

The router give another address to the BeagleBone. Personally I could connect to the router with a web interface and know the ip address of the connected computers.
In you case you could connect to the BB with the USBTTy and read the IP address with ifconfig command.

rituparna saikia

unread,
Jun 25, 2013, 9:46:11 AM6/25/13
to beagl...@googlegroups.com
Hi
you have to unmount your beagle bone mass storage device at first
Next reboot your beagle bone
 
use screen for the same
using ipconfig find out eth0 and
then you can go for ssh root@IP OF BONE
 
 
 

Caden Farley

unread,
Jun 25, 2013, 9:59:32 AM6/25/13
to beagl...@googlegroups.com
Ok, so earlier I used a tool called connman to change the IP address to 192.168.3.6 and tried to ssh into the bone, and it returned: "connection to ro...@192.168.3.6 port 22: No route to host" at least it recognizes the bone but I'm not sure what that means. I was connected through wifi (on the same router) on the client computer.
So the boot sequence carried out successfully(4 green LEDs blinking), the ip is 192.168.3.6, and executing "nmap 192.168.3.6" returns something like "the host seems to be down." After a little while. And thanks Rituparna, but I have my bone connected to the router, so ther is no USB mass storage. Don't only older versions of Ängström require unmounting? I updated to the latest image.(before I did, I couldn't even get the built in web server running) I will try to ssh into my bone through USB to double check that the ip right. One note: is the ip by default static or dynamic and if it is dynamic, how do I set it to be static?

^C

rituparna saikia

unread,
Jun 25, 2013, 12:20:05 PM6/25/13
to beagl...@googlegroups.com
I will tell how I use to connect to my Beaglebone
1. screen /dev/ttyUSB0 115200
2. Loog in
3. eject BEAGLE_BONE
4. ifconfig to get the beaglebone ip. I got 192.168.0.104
5. after that
rituparna@rituparna-desktop:~$ ssh ro...@192.168.0.104
ro...@192.168.0.104's password:
root@beaglebone:~#


I think it will help you

regarding the static ip and all you will get enough information in google search

regards

Rituparna





Caden Farley

unread,
Jun 25, 2013, 3:28:21 PM6/25/13
to beagl...@googlegroups.com


On Tuesday, June 25, 2013 9:20:05 AM UTC-7, Nobul wrote:
I will tell how I use to connect to my Beaglebone
1. screen /dev/ttyUSB0 115200
2. Loog in
3. eject BEAGLE_BONE
4. ifconfig to get the beaglebone ip. I got 192.168.0.104
5. after that
rituparna@rituparna-desktop:~$ ssh ro...@192.168.0.104
ro...@192.168.0.104's password:
ro...@beaglebone.local
 
I think it will help you

regarding the static ip and all you will get enough information in google search

regards

Rituparna





On Tue, Jun 25, 2013 at 7:29 PM, Caden Farley <thescie...@gmail.com> wrote:
Ok, so earlier I used a tool called connman to change the IP address to 192.168.3.6 and tried to ssh into the bone, and it returned: "connection to ro...@192.168.3.6 port 22: No route to host" at least it recognizes the bone but I'm not sure what that means. I was connected through wifi (on the same router) on the client computer.
So the boot sequence carried out successfully(4 green LEDs blinking), the ip is 192.168.3.6, and executing "nmap 192.168.3.6" returns something like "the host seems to be down." After a little while. And thanks Rituparna, but I have my bone connected to the router, so ther is no USB mass storage. Don't only older versions of Ängström require unmounting? I updated to the latest image.(before I did, I couldn't even get the built in web server running) I will try to ssh into my bone through USB to double check that the ip right. One note: is the ip by default static or dynamic and if it is dynamic, how do I set it to be static?

^C

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

when I log in serially, it said, "Sorry, could not find a PTY [screen terminating]"
i tried to ssh through USB and it worked fine.
When I type ifconfig I see all the adapters have ip addresses except for eth0, which had no ip.
I found through Connman that I had changed the ip address of USB (wait what? USB has an ip??) and eth0 had no ip. her is what connman returned when I typed ./get-services

caden@caden-iMac:~$ ssh ro...@beaglebone.local
ro...@beaglebone.local's password:
root@beaglebone:~# cd /usr/lib/connman/test
root@beaglebone:/usr/lib/connman/test# ./get-services
[ /net/connman/service/ethernet_d494a1539daa_cable ]
    IPv6.Configuration = { Method=manual Privacy=disabled }
    AutoConnect = true
    Name = Wired
    Nameservers = [ ]
    Provider = { }
    Favorite = true
    Domains.Configuration = [ ]
    Timeservers.Configuration = dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
    State = ready
    Proxy = { Method=direct }
    Nameservers.Configuration = [ ]
    IPv4 = { Netmask=255.255.255.0 Method=manual Address=192.168.3.6 }
    Timeservers = dbus.Array([dbus.String(u'192.168.3.7'), dbus.String(u'0.angstrom.pool.ntp.org'), dbus.String(u'1.angstrom.pool.ntp.org'), dbus.String(u'2.angstrom.pool.ntp.org'), dbus.String(u'3.angstrom.pool.ntp.org')], signature=dbus.Signature('s'), variant_level=1)
    IPv6 = { Method=manual Privacy=disabled }
    Domains = [ ]
    Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=D4:94:A1:53:9D:AA }
    Security = [ ]
    Proxy.Configuration = { }
    Type = ethernet
    Immutable = false
    IPv4.Configuration = { Netmask=255.255.255.0 Gateway=192.168.3.7 Method=manual Address=192.168.3.6 }

root@beaglebone:/usr/lib/connman/test#



where is says Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=D4:94:A1:53:9D:AA } that is where I foumd out that the eth0 ip is still on auto, or a dynamic ip in other words.

I also googled how to assign a static ip and the one tutorial that showed up didnt work and probably got me even further into trouble.

rituparna saikia

unread,
Jun 25, 2013, 10:21:04 PM6/25/13
to beagl...@googlegroups.com
you must unmount the BEAGLE_BONE otherwise eth0 will not run 

rituparna saikia

unread,
Jun 25, 2013, 10:32:24 PM6/25/13
to beagl...@googlegroups.com
Hi
Connect the beaglebone to your PC and
Follow the bellow mention steps and fill the ?? marks with the result you got

1. dmesg | grep FTDI | grep "now attached to" | tail -n1 | awk '{print $NF}'

 ??

2. I will tell in the next mail



Rituparna




Reply all
Reply to author
Forward
0 new messages