SSH connection by wifi

Hello there,

I connected my BBB to my wifi with an edimax wireless adapter. This works fine so far, i even got a connection to the internet.

my problem is, I have only access to the BBB by the usb cable. I want so connect by SSH with the Wifi network.

I guess there’s probably a problem with the non static ip adress of my router because DHCP is activated.

Now I want to connect with Putty to the BBB without an cable connection.

How do i get the Ip adress of the BBB? Is this even possible as i try to do?

maybe this is helpfull

`
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr 90:59:AF:49:E5:F6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:56

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4420 (4.3 KiB) TX bytes:4420 (4.3 KiB)

usb0 Link encap:Ethernet HWaddr A6:50:E4:64:B4:AE
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:666 errors:0 dropped:0 overruns:0 frame:0
TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:157298 (153.6 KiB) TX bytes:37885 (36.9 KiB)

wlan0 Link encap:Ethernet HWaddr 80:1F:02:D7:B4:4F
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::821f:2ff:fed7:b44f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:668 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46175 (45.0 KiB) TX bytes:12808 (12.5 KiB)

`

Thank you very much.

look at the output from:

netstat -lan | grep tcp

→ Is the SSH service set to listen on any IP “0.0.0.0:22”?
→ If you note the IP of the wlan0 connection then disconnect the USB cable can you connect (assuming you are not powering it via USB)?

→ Can you connect on SSH to the eth0 ip when that is plugged in?

Honestly I’ve never had to fiddle with it. It always just worked once I got an IP on the wifi network.

Hello there,

I connected my BBB to my wifi with an edimax wireless adapter. This works
fine so far, i even got a connection to the internet.

my problem is, I have only access to the BBB by the usb cable. I want so
connect by SSH with the Wifi network.

I guess there's probably a problem with the non static ip adress of my
router because DHCP is activated.

Have a look at the manual of your router. All routers I know allow to
provide fixed IP's.

Now I want to connect with Putty to the BBB without an cable connection.

How do i get the Ip adress of the BBB? Is this even possible as i try to do?

maybe this is helpfull
wlan0 Link encap:Ethernet HWaddr 80:1F:02:D7:B4:4F
          inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0

Did you try to ssh (with putty) 192.168.2.101?

If you don't have any clue what's the IP of your BBB, have a look at
nmap. IRRC there is a windows version available...

Looks like your wifi IP address is 192.168.2.101. You should be able to ssh into there.

As far as the Edimax wifi adapter goes (I have the EW-7811Un) you’ll be initially successful, but after an hour or so of inactivity, the link will die. The entire wlan0 link will die - no ping, no ssh, nothing. I am now trying the Netgear WNA1100, but am experiencing the same link lockup. I have disabled wifi power off. Same symptoms. I’m running one of Robert Nelson’s latest Debian Wheezy images (01-29-14).

I have seen some issues with acpi problems causing kworker daemons to multiply, (and my hungriest process is kworker) but haven’t figured out a way to monitor that without being “live” on the wifi connection, which modifies the behavior, much like Schrödinger’s Cat problem. Will keep plugging away.

How can one prevent acpi from starting in the first place?

In addition to what Dieter said about using a fixed IP address with your router’s DHCP, you’ll need your MAC address for your USB wifi gizmo; that’s the HWaddr in the output of ifconfig, the stuff with 2 characters with colons between.

thanks for ur help :wink:

i was successfull to connect to the beaglebone with ssh just using the ip address.

the i tried to setup a automatic ntp update and now there no way to connect to the bbb by sss - not by wifi and not by the usb cable.

any idea whats wrong?

i removed the ntp on my bbb and also removed the dropbear rsa host key file and started dropbear again but still no way to ssh.

sometimes putty tells me an error network timed out and sometimes putty just freezes and does nothing :frowning: