ssh using USB

Hi,

How does the BBB manage to allow ssh-ing using just the USB cable and a fixed IP address? I have a RPi too and I need an Ethernet cable and to know the IP address everytime in order to SSH into it…

On Sat, 11 Feb 2017 12:28:24 -0800 (PST), vreg
<vrege2012@gmail.com> declaimed the
following:

Hi,

How does the BBB manage to allow ssh-ing using just the USB cable and a
fixed IP address? I have a RPi too and I need an Ethernet cable and to know
the IP address everytime in order to SSH into it...

  Uhm... Maybe because the USB driver you had to install is designed to
use that fixed address, which is hard-coded to the BBB USB interface SLIP
emulation?

  If you are using the RPi via a router, see if you can define a fixed IP
for the RPi via its MAC address. And then add the address to your system's
HOSTS file so you can use a name instead of address.

You need a decent DHCP server on your network! :slight_smile:

I have lots (well quite a few) devices on my home network, e.g. family
members computers (3), a printer, a DECT phone base station, a RPi,
sometimes a BBB, etc.

Most modern ADSL routers sadly don't handle the system's names
properly (or at all actually). So I run my own DHCP server on the RPi
(it' called dnsmasq) and that *does* handle names properly. Since the
dnsmasq on the RPi also acts as a local DNS server it can find all my
systems by name with no extra effort on my part.

Once you have more than one or two systems it's a real pain not having
a local naming service.

BBB uses USB multi_g driver which supplies ethernet and USB mass storage that exports the built in flash storage. You can learn more about how this works from my DEFCON 23 talk “1 device to pwn them all”. Just Google it for video and slides.