08-16-2009, 02:19 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2009
Device: BeBook
|
ubuntu 9.04 ssh help please
I am following the instructions in http://openinkpot.org/wiki/SSHAccess to allow ssh access to my BeBook running openinkpot 2009 03 26.
I am pretty sure the ubuntu is a standard install. But it runs on a rather old P3 desktop with usb < 2.0. I edited the /etc/network/interfaces file to include: iface usb0 inet static address 192.168.111.2 netmask 255.255.255.0 then try the ifconfig command: ralph@en:~/BeBook$ ifconfig usb0 up usb0: ERROR while getting interface flags: No such device ralph@en:~/BeBook$ sudo ifconfig usb0 up [sudo] password for ralph: usb0: ERROR while getting interface flags: No such device ralph@en:~/BeBook$ ifconfig -v usb0 up usb0: ERROR while getting interface flags: No such device WARNING: at least one error occured. (-1) As you can see I am not getting very far. My knowledge of these things is slight. Any help/suggestions are most welcomed regards |
08-16-2009, 03:59 AM | #2 |
OpenInkpot co-founder
Posts: 410
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
See the dmesg output
|
Advert | |
|
08-16-2009, 10:35 PM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2009
Device: BeBook
|
dmesg output
Hi Dottedmag,
thanks for the suggestion. I restarted the computer and ran dmesg. the output (rather long) is attached. I tried the "ifconfig usb0 up" again, then dmesg, but there seem to be no additional messages. regards. |
08-17-2009, 05:14 AM | #4 |
OpenInkpot co-founder
Posts: 410
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
USB 1.1 is more than enough.
From the dmesg I can conclude your computer does not see the device at all (just to make sure: did you plug it in in powered on state?) - try another USB cable and then another computer to figure out what exactly is broken. For the reference, Linux output the following lines to the log when something like V3 is attached: Code:
[763343.412071] usb 3-1: new full speed USB device using uhci_hcd and address 3 [763343.618604] usb 3-1: New USB device found, idVendor=0525, idProduct=a4a2 [763343.618613] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [763343.618619] usb 3-1: Product: RNDIS/Ethernet Gadget [763343.618624] usb 3-1: Manufacturer: Linux 2.6.29-v3 with s3c2410_udc [763343.618830] usb 3-1: configuration #1 chosen from 2 choices |
08-18-2009, 02:13 AM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2009
Device: BeBook
|
progress ?
Hi Dottedmag,
from your message I gather the BeBook should be plugged in to the PC via usb cable. From the help page I thought that step came later. Anyway I tried a few things, hoping they might throw some light on the problem. Please see the transcript below. Thanks for your interest. Regards. transcript follows: I started PC normally without BeBook connected. ralph@en:~/BeBook$ dmesg [ 0.000000] BIOS EBDA/lowmem at: 0009fc00/0009fc00 ... [ 33.916031] I will go on reclaiming the buffers anyway. [ 98.479984] PPP BSD Compression module registered [ 98.523041] PPP Deflate Compression module registered ### as before except for my dail up connection ### now I plug in BeBook (it is powered up & running openinkpot) ralph@en:~/BeBook$ dmesg [ 0.000000] BIOS EBDA/lowmem at: 0009fc00/0009fc00 ... [ 33.916031] I will go on reclaiming the buffers anyway. [ 98.479984] PPP BSD Compression module registered [ 98.523041] PPP Deflate Compression module registered [ 939.984045] usb 1-2: new full speed USB device using uhci_hcd and address 2 [ 940.241874] usb 1-2: configuration #1 chosen from 2 choices [ 940.380830] usb0: register 'cdc_ether' at usb-0000:00:1f.4-2, CDC Ethernet Device, 46:21:4f:bc:54:59 [ 940.381793] usbcore: registered new interface driver cdc_ether ralph@en:~/BeBook$ ### ok extra usb stuff ralph@en:~/BeBook$ ifconfig usb0 up SIOCSIFFLAGS: Permission denied ralph@en:~/BeBook$ sudo ifconfig usb0 up [sudo] password for ralph: ### no error message so assume command worked ralph@en:~/BeBook$ dmesg ... [ 940.381793] usbcore: registered new interface driver cdc_ether [ 1104.544024] usb0: no IPv6 routers present ### one extra line. ralph@en:~/BeBook$ ifconfig eth0 Link encap:Ethernet HWaddr 00:02:a5:65:f7:89 ... lo Link encap:Local Loopback ... ppp0 Link encap:Point-to-Point Protocol ... usb0 Link encap:Ethernet HWaddr 46:21:4f:bc:54:59 inet6 addr: fe80::4421:4fff:febc:5459/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) ### looks like new device is seen ### try ssh ralph@en:~/BeBook$ ssh root@192.168.111.1 ssh: connect to host 192.168.111.1 port 22: Connection timed out ralph@en:~/BeBook$ sudo ssh root@192.168.111.1 ssh: connect to host 192.168.111.1 port 22: Connection timed out ### ok now I restart the PC with the BeBook connected & powered on (running openinkpot - of course) ralph@en:~/BeBook$ dmesg | grep usb [ 1.166795] usbcore: registered new interface driver usbfs [ 1.166847] usbcore: registered new interface driver hub [ 1.166938] usbcore: registered new device driver usb [ 3.757860] usb usb1: configuration #1 chosen from 1 choice [ 3.758345] usbcore: registered new interface driver libusual [ 3.758440] usbcore: registered new interface driver usbserial [ 3.758522] usbcore: registered new interface driver usbserial_generic [ 3.758530] usbserial: USB Serial Driver core [ 4.072205] usb 1-2: new full speed USB device using uhci_hcd and address 2 [ 4.298907] usb 1-2: configuration #1 chosen from 2 choices [ 16.010280] usb0: register 'cdc_ether' at usb-0000:00:1f.4-2, CDC Ethernet Device, 46:21:4f:bc:54:59 [ 16.010370] usbcore: registered new interface driver cdc_ether ralph@en:~/BeBook$ ifconfig eth0 Link encap:Ethernet HWaddr 00:02:a5:65:f7:89 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) 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:16436 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ralph@en:~/BeBook$ sudo ifconfig usb0 up [sudo] password for ralph: ralph@en:~/BeBook$ ifconfig eth0 Link encap:Ethernet HWaddr 00:02:a5:65:f7:89 ... lo Link encap:Local Loopback ... usb0 Link encap:Ethernet HWaddr 46:21:4f:bc:54:59 inet6 addr: fe80::4421:4fff:febc:5459/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:238 (238.0 B) ### try ssh again ralph@en:~/BeBook$ sudo ssh root@192.168.111.1 ssh: connect to host 192.168.111.1 port 22: Network is unreachable ralph@en:~/BeBook$ |
Advert | |
|
08-18-2009, 03:33 AM | #6 |
OpenInkpot co-founder
Posts: 410
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Ah, it's a known Ubuntu bug: use 'ifconfig usb0 192.168.111.2 netmask 255.255.255.0 up' once the device is plugged.
IIRC this way you won't need an entry in /etc/network/interfaces |
08-18-2009, 04:02 AM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2009
Device: BeBook
|
success - thanks dottedmag
Hi again,
this time success. Many thanks for your help. I look forward to messing around inside the BeBook. transcript follows: ### unplug - then replug ralph@en:~/BeBook$ sudo ifconfig usb0 192.168.111.2 netmask 255.255.255.0 up [sudo] password for ralph: ralph@en:~/BeBook$ ifconfig eth0 Link encap:Ethernet HWaddr 00:02:a5:65:f7:89 ... lo Link encap:Local Loopback ... ppp0 Link encap:Point-to-Point Protocol ... usb0 Link encap:Ethernet HWaddr 46:21:4f:bc:54:59 inet addr:192.168.111.2 Bcast:192.168.111.255 Mask:255.255.255.0 inet6 addr: fe80::4421:4fff:febc:5459/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:3744 (3.7 KB) ### looks hopeful ralph@en:~/BeBook$ sudo ssh root@192.168.111.1 The authenticity of host '192.168.111.1 (192.168.111.1)' can't be established. RSA key fingerprint is 61:6b:2e:82:77:a7:d2:c0:d6:db:e8:fe:f9:17:cc:43. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.111.1' (RSA) to the list of known hosts. root@192.168.111.1's password: Linux ip 2.6.28-v3ext #2 Wed Mar 18 11:00:05 UTC 2009 armv4tl unknown IPlinux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. # # ls # pwd /root # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # env USER=root HOME=/root LOGNAME=root TERM=dumb PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/sh PWD=/root # exit Connection to 192.168.111.1 closed. |
08-18-2009, 04:10 AM | #8 |
OpenInkpot co-founder
Posts: 410
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Great. I've updated SSHAcces wiki page.
|
08-18-2009, 04:34 AM | #9 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2009
Device: BeBook
|
Thanks again,
the wiki looks good. The previous reference to that bug really didn't help me. Now the solution is right where you need it. Regards Lampadena |
08-18-2009, 11:21 PM | #10 |
Bear Melt
Posts: 919
Karma: 5433051
Join Date: Jul 2008
Location: Toronto
Device: Google Pixel 6, Moto G9 Power (both with Fbreader) & Kindle PW2
|
This worked great for me, too. I've been trying (on and off) for several months to ssh into the BeBook on Ubuntu. Thanks, Dottedmag!
|
Tags |
9.04, openinkpot, problem, ssh, ubuntu |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SSH keys with dropbear? | enn | Kindle Developer's Corner | 2 | 10-07-2010 12:54 AM |
ssh from Kindle 3 | aKarma | Kindle Developer's Corner | 6 | 09-21-2010 08:59 PM |
SSH to Kindle | Zorz | Kindle Developer's Corner | 16 | 01-15-2010 01:18 AM |
SSH access broken | yecam | OpenInkpot | 4 | 08-29-2009 05:42 PM |
Kindle + SSH? | Elegant Forkbomb | Amazon Kindle | 3 | 03-05-2009 08:12 AM |