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-29-2022, 07:27 AM   #1
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
Different passwords for root for USB and Wifi

Hi, thanks to instruction here I have successfully jailbroken (is that the right word?) my PW1 and installed Kual and USBnet. USBnet works as expected and I have logged onto the Kindle via SSH and WiFi and changed the root password. I can log onto the Kindle via WiFi using the new password without issue. But when I try and log onto the Kindle via SSH on the USB cable I can reach the Kindle but when I'm asked for the root password and input the password which works fine for the WiFi SSH I get the following:

root@192.168.15.244's password:
Permission denied, please try again.
root@192.168.15.244's password:
Permission denied, please try again.
root@192.168.15.244's password:
root@192.168.15.244: Permission denied (publickey,password).

What am I doing wrong?
stevejoung is offline   Reply With Quote
Old 11-29-2022, 12:58 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Wrong network setup?
NiLuJe is offline   Reply With Quote
Old 11-30-2022, 03:50 PM   #3
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
I've been looking into this for days now and I am not getting any further with it and would therefore be really grateful for any tips.

I simply cannot understand why the ssh connection over WiFi works but the ssh connection over usb connects to the Kindle but then the password fails. The root@kindle password must surely be the same whichever interface I connect by.https://www2.mobileread.com/i/smiliesadd1/help.gif
stevejoung is offline   Reply With Quote
Old 11-30-2022, 04:05 PM   #4
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Why not use ssh public/private key pair to login?
j.p.s is offline   Reply With Quote
Old 11-30-2022, 05:48 PM   #5
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
I am using ssh public/private key pair to login. I have regenerated the pairs several times and they work fine in connecting me to the Kindle. The problem is that after reaching the Kindle I cannot log into it. Here is the output using a new ssh key pair to login:

$ ssh-copy-id root@192.168.15.244
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.15.244's password:
Permission denied, please try again.
root@192.168.15.244's password:
Permission denied, please try again.
root@192.168.15.244's password:
root@192.168.15.244: Permission denied (publickey,password).

It seems to me that on the kindle OS, root@192.168,x,x (my WiFi ssh connection) has a different password to root@192.168.15.244 (the USB ssh connection). None of the suggested passwords (mario, fionaxxx etc) work either.
stevejoung is offline   Reply With Quote
Old 11-30-2022, 06:09 PM   #6
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
I have no idea what ssh-copy-id is, and when ssh keys have been set up no password is involved. The account does not even need a password. (Not having a password is not the same as an empty password.)

I have 5 jailbroken kindles and have never needed to know a root password.

For USBNetworking, the keys go in the userstore , not in root's home .ssh directory. It's all documented in the USBNetworking package.
j.p.s is offline   Reply With Quote
Old 12-01-2022, 02:36 AM   #7
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
There is a root password on the Kindle. When I fist jailbroke my PW1, using instruction I got on this thread, was was told to go to this site to find the root password https://www.sven.de/kindle/# The password was Mario which I changed after my first login (via WiFi).

I think you are wrong to say that the Kindle does not have a root password.
stevejoung is offline   Reply With Quote
Old 12-01-2022, 01:02 PM   #8
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,278
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by stevejoung View Post
There is a root password on the Kindle. When I fist jailbroke my PW1, using instruction I got on this thread, was was told to go to this site to find the root password https://www.sven.de/kindle/# The password was Mario which I changed after my first login (via WiFi).

I think you are wrong to say that the Kindle does not have a root password.
I never wrote that kindles do not have a root password.

I wrote that I have never had to know or use one. That may have been necessary on very old models or when connecting over the serial port. Now that your kindle is jailbroken you do not need a password to configure or use ssh.
j.p.s is offline   Reply With Quote
Old 12-02-2022, 03:36 AM   #9
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
Quote:
Now that your kindle is jailbroken you do not need a password to configure or use ssh.
But I do need a password to enter the kindle OS, at least for the first time, and that is precisely my problem.

When I ssh into the Kindle with WiFi the root password is that which I changed to from "mario".

When I ssh into the Kindle with USB my root password is rejected and neither "mario" nor any other suggestions from https://www.sven.de/kindle/# allow me to enter.

Last edited by stevejoung; 12-02-2022 at 03:39 AM. Reason: spelling errors
stevejoung is offline   Reply With Quote
Old 12-02-2022, 07:56 AM   #10
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by stevejoung View Post
But I do need a password to enter the kindle OS, at least for the first time, and that is precisely my problem.
No you don't. Unless you switch to OpenSSH or enable SSH-over-WiFi, dropbear is patched to let you in despite the root account being locked or passworded (just hit enter).

This gaping hole goes poof once you enable WiFi or switch to OpenSSH, though, but that's not the default setup.

The intent being: you install USBNet, you don't touch anything, you get in over USB, you setup your keypair, and *then* you tweak your settings.

As usual, ssh -vvv is your friend, but my 0.02$ is still that you bungled the USBNet network interface setup setup and you're actually connecting to a completely different device on your network (possibly your actual host).

Last edited by NiLuJe; 12-02-2022 at 07:59 AM.
NiLuJe is offline   Reply With Quote
Old 12-03-2022, 06:51 AM   #11
stevejoung
Member
stevejoung began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
After tweaking my Ubuntu Linux USB ethernet connection and using ssh -vvv to see what was happening, I am finally able to connect to my PW both via cable and WiFi. I am using OpenSSH rather than Dropbear, but now I don't need a password for either method of connection, I'll have to look at the configuration files again to find out how that happened, but would like to thank you all for your patience. This has been a steep learning curve for me.
stevejoung is offline   Reply With Quote
Reply

Tags
ssh, usb, wifi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing WiFi Passwords Hartsock Kobo Reader 4 10-13-2018 10:14 PM
WiFi Passwords knc1 Kindle Developer's Corner 13 06-24-2016 08:55 AM
Glo Kobo never remembers WiFi networks and passwords gioele Kobo Reader 0 08-08-2013 11:02 AM
Kindle Touch stores WiFi passwords in plain text on user partition wolftail Amazon Kindle 11 01-27-2013 02:20 AM
Confused by behavior of two pdfs w/permissions passwords, but no open passwords/DRM grr PDF 0 12-21-2009 02:21 PM


All times are GMT -4. The time now is 04:48 AM.


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