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 12-04-2014, 06:54 PM   #1501
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Spartan117H3 View Post
Not too big of a deal, but when I log into SSH, why do I always get "Server refused our key" and have to hit enter on the password prompt? Any fix for that?:
Code:
login as: root
Welcome to Kindle!

Server refused our key
root@192.168.15.244's password:
That means your keys haven't been created correctly.
In particular it probably is your public key the one wrong.
You can't save the public key with the save button, that has an incorrect format. You have to copy the key displayed in the upper panel, and paste it in a file called "authorized_keys" and copy that to the file /mnt/us/usbnet/etc/authorized_keys

Quote:
While I'm talking about SSH, how do I SSH over WiFi? I just get a connection timeout.
You have to enable it in your usbnet configuration. Check usbnet readme_first file for instructions.
Attached Thumbnails
Click image for larger version

Name:	puttygen.jpg
Views:	273
Size:	110.9 KB
ID:	131983  

Last edited by Ruskie_it; 12-04-2014 at 06:58 PM. Reason: Forgot a picture
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 06:55 PM   #1502
Spartan117H3
Enthusiast
Spartan117H3 began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by NiLuJe View Post
@Spartan117H3: That seems to be an issue on your side (that, or PuTTy being weird) [i.e., you're not in fact using shared keys to auth].

As for over WiFi, there's a config switch in the KUAL extension, but you *will* have to clear up your authentication issues first, because it will require a valid auth (unlike now where you can enter pretty much whatever you like as a password, or just hit enter).
I didn't set a password for the public/private keys, would that be a reason? I figured it would "skip" the auth as long as I had the key file.
Spartan117H3 is offline   Reply With Quote
Old 12-04-2014, 06:57 PM   #1503
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Spartan117H3 View Post
I didn't set a password for the public/private keys, would that be a reason? I figured it would "skip" the auth as long as I had the key file.
Not at all. Keys won't need a passphrase. In fact, Winscp would not even support it, for instance.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:03 PM   #1504
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by goldencore View Post
I tried the instructions to connect to the kindle via putty (from Windows), but get "connection refused". I can ping the kindle's ip, but putty won't connect me.
You must have misunderstood some of them, or I might have overlooked something, but I'd need a step-by-step detail of what have you done to identify what has gone wrong. Connection refused usually means that there isn't anybody listening to the ip : port where you are trying to connect, so it usually would either mean you are pointing to the wrong ip, or for some reason there is nothing listening to the ip you're pointing at, which doesn't seem likely in this case.
Try starting over the setup

Last edited by Ruskie_it; 12-04-2014 at 07:28 PM.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:07 PM   #1505
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Ruskie_it View Post
and paste it in a file called "authorized_keys" and copy that to the file /mnt/us/usbnet/etc/authorized_keys
Sorry: this is from the path from the "internal" view.
If your viewing the kindle in usb mode, that would be /usbnet/etc/authorized_keys
Yeah, that's a file, you have to create a file with that name and with the text pasted from puttygen panel as its content.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:07 PM   #1506
Spartan117H3
Enthusiast
Spartan117H3 began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by Ruskie_it View Post
Not at all. Keys won't need a passphrase. In fact, Winscp would not even support it, for instance.
Ah, I had one before which did work for putty, but I got lazy and removed it.
Quote:
Originally Posted by Ruskie_it View Post
That means your keys haven't been created correctly.
In particular it probably is your public key the one wrong.
You can't save the public key with the save button, that has an incorrect format. You have to copy the key displayed in the upper panel, and paste it in a file called "authorized_keys" and copy that to the file /mnt/us/usbnet/etc/authorized_keys


You have to enable it in your usbnet configuration. Check usbnet readme_first file for instructions.
I just copied it into a .txt file, removed the .txt extension, then placed it into authorized_keys. Still get the same problem.
Spartan117H3 is offline   Reply With Quote
Old 12-04-2014, 07:12 PM   #1507
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Spartan117H3 View Post
I just copied it into a .txt file, removed the .txt extension, then placed it into authorized_keys. Still get the same problem.
I'm sorry, this does not make much sense to me. Placed it (the text file without .txt extension) INTO authorized_keys?
That is not possible unless authorized_keys is a directory.

If it is like that, it is wrong. authorized_keys is a file.
The text file you have created: rename THAT with the name authorized_keys and place this file into /usbnet/etc
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:12 PM   #1508
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 Spartan117H3 View Post
Ah, I had one before which did work for putty, but I got lazy and removed it.

I just copied it into a .txt file, removed the .txt extension, then placed it into authorized_keys. Still get the same problem.
Time for the dumb question:

Have you enabled USB networking?
It has an on/off toggle.

If you plug in the USB cable, and you see the USB storage area - USB networking is **OFF**. Try turning it on (with the cable unplugged).
knc1 is offline   Reply With Quote
Old 12-04-2014, 07:15 PM   #1509
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by knc1 View Post
Time for the dumb question:

Have you enabled USB networking?
It has an on/off toggle.

If you plug in the USB cable, and you see the USB storage area - USB networking is **OFF**. Try turning it on (with the cable unplugged).
No, that cannot be, otherwise he would not be able to even see the message "Server refused our key".
It really is a problem in keys format.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:17 PM   #1510
Spartan117H3
Enthusiast
Spartan117H3 began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by Ruskie_it View Post
I'm sorry, this does not make much sense to me. Placed it (the text file without .txt extension) INTO authorized_keys?
That is not possible unless authorized_keys is a directory.

If it is like that, it is wrong. authorized_keys is a file.
The text file you have created: rename THAT with the name authorized_keys and place this file into /usbnet/etc
Ahhhhhh I got it. Ok. I thought authorized_keys was a folder. My mistake. I completely figured it out, got it to work, got the
"Authenticating with public key "Kindle_Paperwhite"
message which is the note that I put for the key.
Quote:
Originally Posted by knc1 View Post
Time for the dumb question:

Have you enabled USB networking?
It has an on/off toggle.

If you plug in the USB cable, and you see the USB storage area - USB networking is **OFF**. Try turning it on (with the cable unplugged).
Yes, I've connected before. I figured it out above.



Okay, with that done, time to read up on WiFi SSH!
Spartan117H3 is offline   Reply With Quote
Old 12-04-2014, 07:22 PM   #1511
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Spartan117H3 View Post
Ahhhhhh I got it. Ok. I thought authorized_keys was a folder. My mistake. I completely figured it out, got it to work, got the
"Authenticating with public key "Kindle_Paperwhite"
message which is the note that I put for the key.
Lucky for you that I am a nitpicker as long as language is concerned.
But it was easier for me to notice that because at first read I also thought it was a directory.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:34 PM   #1512
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 538
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by Spartan117H3 View Post
Ahhhhhh I got it. Ok. I thought authorized_keys was a folder. My mistake. I completely figured it out, got it to work, got the
"Authenticating with public key "Kindle_Paperwhite"
message which is the note that I put for the key.
By the way, at this moment the kindle should still ask you on connection wich user you want to login as. And you would have to enter "root".
You can automate this too: just put "root" in text field: Connection - > Data -> Auto-login username and you're good to go.
When you'll press the "Open" button to connect to kindle, it will go straight to the prompt.
Don't forget to save your session after you add the "root" user as described and before opening the connection
Attached Thumbnails
Click image for larger version

Name:	autologin.jpg
Views:	240
Size:	80.6 KB
ID:	131985  

Last edited by Ruskie_it; 12-04-2014 at 07:36 PM.
Ruskie_it is offline   Reply With Quote
Old 12-04-2014, 07:44 PM   #1513
Spartan117H3
Enthusiast
Spartan117H3 began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by Ruskie_it View Post
By the way, at this moment the kindle should still ask you on connection wich user you want to login as. And you would have to enter "root".
You can automate this too: just put "root" in text field: Connection - > Data -> Auto-login username and you're good to go.
When you'll press the "Open" button to connect to kindle, it will go straight to the prompt.
Don't forget to save your session after you add the "root" user as described and before opening the connection
Got it.

I tried changing the config file, but I also find that I can do it through the KUAL menu, which also changes the config file. So I just toggle allow SSH over wifi, and turn on the USBNetwork. However, I get connection timeout when using the same exact settings to connect, am I supposed to connect to a different IP or something?


Edit: Hmm, for backing up the entire kindle, do I just make a copy of all of my files (including the hidden system folder) to somewhere safe, or is that unnecessary with the rescue pack extensions?

Last edited by Spartan117H3; 12-04-2014 at 08:13 PM.
Spartan117H3 is offline   Reply With Quote
Old 12-04-2014, 08:33 PM   #1514
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
FWIW, this is so much easier on the command-line. putty installs a tool called plink, but I'd just go with Gow which bundles PuTTY among other things, and also installs itself to the PATH. It has an alias for "ssh" which lets you run ssh just like on Linux.

...Except of course that all configuration to save settings still needs to be done via a GUI...

I've been really impressed with Gow thus far, it was originally suggested to me by MR user @DMcCunney and really adds power to the Windows command-line. (Assuming for argument's sake that I am forced to use Windows to begin with. )

Last edited by eschwartz; 12-04-2014 at 08:56 PM.
eschwartz is offline   Reply With Quote
Old 12-04-2014, 08:35 PM   #1515
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
The IP over Wifi will be that assigned by whatever on your network is doing DHCP service.
You can find what it is on the kindle from the info display -
either ;711 or ;411 in the search bar.
Hmm...
You might also be able to find it in the settings -> device info display.
- - - -
Plus, there are KUAL buttons for looking that information up.
knc1 is offline   Reply With Quote
Reply

Tags
5.1.0, 5.2.0, jailbreak, kindle touch hacks, paperwhite, touch


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch 5.0 Jailbreak yifanlu Kindle Developer's Corner 246 01-03-2013 04:57 PM
Is a Kindle Touch for a PaperWhite a good trade? route66 Amazon Kindle 7 09-29-2012 03:21 PM
Kindle Touch with 'Paperwhite' backlit display JoHunt Amazon Kindle 2 08-31-2012 04:33 AM
[Kindle Touch] Firmware 5.1.0 and jailbreak ixtab Kindle Developer's Corner 85 06-28-2012 04:43 AM
How to Kindle touch - jailbreak, screensaver morgun Kindle Developer's Corner 3 05-21-2012 06:39 PM


All times are GMT -4. The time now is 03:57 PM.


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