Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2016, 10:33 PM   #1
rrajamani
Junior Member
rrajamani began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: Paperwhite 3
USBNetwork ssh logs into the local linux machine

I have a paperwhite 3 and am new to rooting/jailbreaking though I am very familiar with linux in general.

I did the jailbreak/rooting part and installed KUAL/MRI etc and got usbnetwork running. My laptop is debian 8.3 and the PW3 FW is 5.8.5. If I login via ssh over Wifi then it asks for a root password (and just enter does not work). Then I read that I have to change to password or put an ssh key in the root account without using wifi and then access it over wifi.

So once usbnetworking is running, the kindle shows up as usb0. After doing
ifconfig usb0 192.168.2.2
and
ssh 192.168.2.2 puts be directly into localhost (i.e. the laptop itself).

Also the IP address on usb0 doesn't seem to persist for more than a minute or two. No logs on dmesg.

Any help would be appreciated.
rrajamani is offline   Reply With Quote
Old 11-20-2016, 10:45 PM   #2
rrajamani
Junior Member
rrajamani began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: Paperwhite 3
RTFM (yes to myself). I figured out that the usb0 of the linux box has to be in the 192.168.15.X subnet and the kindle is reachable at 192.168.15.244.

It does say
Welcome to Kindle!
but then wants a password! I tried all forms (enter, root etc) none worked.
rrajamani is offline   Reply With Quote
Advert
Old 11-21-2016, 12:20 AM   #3
Cinisajoy
Just a Yellow Smiley.
Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.
 
Cinisajoy's Avatar
 
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
Please put your kindle on a wall charger until help comes along. You should get an answer tomorrow.
Cinisajoy is offline   Reply With Quote
Old 11-21-2016, 04:08 AM   #4
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
IIRC, usbnet package sets an empty password for access via USB.
try to install the latest version of the package.

Also, try to read this
encol is offline   Reply With Quote
Old 11-21-2016, 08:21 AM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by rrajamani View Post
RTFM (yes to myself). I figured out that the usb0 of the linux box has to be in the 192.168.15.X subnet and the kindle is reachable at 192.168.15.244.

It does say
Welcome to Kindle!
but then wants a password! I tried all forms (enter, root etc) none worked.
Log in over the USB cable, establish public key authentication before changing any of the options.
(You had to change options to ssh over wifi - now guess why ssh over USB is the default. )
Alternately, use telnet over USB cable (both servers are started at the same time).
knc1 is offline   Reply With Quote
Advert
Old 11-21-2016, 12:30 PM   #6
rrajamani
Junior Member
rrajamani began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: Paperwhite 3
The PW is in airplane mode, and since the 192.168.15.X address of the laptop is associated with usb0, it is logging over USB cable when ssh'ing to the kindle. But still it asks for the password.
Could it have anything to do with Dropbear vs OpenSSH? I have to check what option I have (shall do it at home later this evening).
rrajamani is offline   Reply With Quote
Old 11-21-2016, 12:41 PM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by rrajamani View Post
The PW is in airplane mode, and since the 192.168.15.X address of the laptop is associated with usb0, it is logging over USB cable when ssh'ing to the kindle. But still it asks for the password.
Could it have anything to do with Dropbear vs OpenSSH? I have to check what option I have (shall do it at home later this evening).
Yes, it could.
Put the configuration file back the same as it was shipped with.
Then we can help you troubleshoot the problem.

Review:
https://www.mobileread.com/forums/sho...d.php?t=204450
And the prior/next threads linked to from there.
knc1 is offline   Reply With Quote
Old 11-21-2016, 07:21 PM   #8
rrajamani
Junior Member
rrajamani began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: Paperwhite 3
Yes - I reverted to default config, rebooted the PW, and was able to get in via usb, set my keys and then login via an ssh agent.

Thanks
p.s. can this thread topic be edited as SOLVED!

Last edited by rrajamani; 11-21-2016 at 07:24 PM.
rrajamani is offline   Reply With Quote
Old 11-21-2016, 11:24 PM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by rrajamani View Post
Yes - I reverted to default config, rebooted the PW, and was able to get in via usb, set my keys and then login via an ssh agent.

Thanks
p.s. can this thread topic be edited as SOLVED!
We do not do that here, all threads are solved, it is the only kind of conclusion we have here.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on SSH: JB 5.6.5 (to 5.7.2.1!) USBNetwork d0ugparker Kindle Developer's Corner 23 03-06-2016 07:35 AM
ssh over USBnetwork disconnects after 30 seconds hallmist Kindle Developer's Corner 2 04-24-2015 09:25 PM
[Help/Question] SSH-USBNetwork blackcatw81 Kindle Developer's Corner 3 03-20-2015 11:22 AM
Kindle ssh/scp with the USBnetwork package knc1 Kindle Developer's Corner 13 02-13-2013 02:17 PM
Usbnetwork/ssh on kindle 3? yifanlu Kindle Developer's Corner 58 10-18-2010 05:39 PM


All times are GMT -4. The time now is 09:30 AM.


MobileRead.com is a privately owned, operated and funded community.