11-29-2022, 08:27 AM | #1 |
Member
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? |
11-29-2022, 01:58 PM | #2 |
BLAM!
Posts: 13,497
Karma: 26047188
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?
|
11-30-2022, 04:50 PM | #3 |
Member
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 |
11-30-2022, 05:05 PM | #4 |
Grand Sorcerer
Posts: 5,531
Karma: 100606001
Join Date: Apr 2011
Device: pb360
|
Why not use ssh public/private key pair to login?
|
11-30-2022, 06:48 PM | #5 |
Member
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. |
11-30-2022, 07:09 PM | #6 |
Grand Sorcerer
Posts: 5,531
Karma: 100606001
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. |
12-01-2022, 03:36 AM | #7 |
Member
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. |
12-01-2022, 02:02 PM | #8 | |
Grand Sorcerer
Posts: 5,531
Karma: 100606001
Join Date: Apr 2011
Device: pb360
|
Quote:
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. |
|
12-02-2022, 04:36 AM | #9 | |
Member
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite
|
Quote:
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 04:39 AM. Reason: spelling errors |
|
12-02-2022, 08:56 AM | #10 | |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
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 08:59 AM. |
|
12-03-2022, 07:51 AM | #11 |
Member
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.
|
Tags |
ssh, usb, wifi |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Losing WiFi Passwords | Hartsock | Kobo Reader | 4 | 10-13-2018 11:14 PM |
WiFi Passwords | knc1 | Kindle Developer's Corner | 13 | 06-24-2016 09:55 AM |
Glo Kobo never remembers WiFi networks and passwords | gioele | Kobo Reader | 0 | 08-08-2013 12:02 PM |
Kindle Touch stores WiFi passwords in plain text on user partition | wolftail | Amazon Kindle | 11 | 01-27-2013 03:20 AM |
Confused by behavior of two pdfs w/permissions passwords, but no open passwords/DRM | grr | 0 | 12-21-2009 03:21 PM |