Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2010, 07:35 AM   #1
Jongwe
Junior Member
Jongwe began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3G
SSH Help

Hi,

I am battling to find a step by step instruction on how to enable SSH via Wifi. Please can somebody point me in the right direction or if anyone is able to assist me I will be more than happy to write a step by step for others. I have the kindle 3 with 3g and have jailbroken the device and installed usbnetwork.

I tried edited the config files to have true and true and I get asked for a password.

Thanks,

Jono
Jongwe is offline   Reply With Quote
Old 10-24-2010, 04:57 AM   #2
Jongwe
Junior Member
Jongwe began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3G
Quote:
Originally Posted by Jongwe View Post
Hi,

I am battling to find a step by step instruction on how to enable SSH via Wifi. Please can somebody point me in the right direction or if anyone is able to assist me I will be more than happy to write a step by step for others. I have the kindle 3 with 3g and have jailbroken the device and installed usbnetwork.

I tried edited the config files to have true and true and I get asked for a password.

Thanks,

Jono

134 Views and not a single response
Jongwe is offline   Reply With Quote
Old 10-24-2010, 05:13 AM   #3
Rinzwind
Connoisseur
Rinzwind began at the beginning.
 
Posts: 96
Karma: 16
Join Date: Oct 2010
Location: Netherlands
Device: Kindle 3G UK 3.03
That is because if you are not prolifent enough with the linux command like you are more likely to break your Kindle.

I used these instructions from post 118 and 120 (119 is my post) to get SSH over WIFI working:
https://www.mobileread.com/forums/showthread.php?t=97745

But some of these instructions I had to alter a bit to get it working or to understand it (see post 119).
Rinzwind is offline   Reply With Quote
Old 10-24-2010, 02:41 PM   #4
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
+1.

If you don't know how to make it work, it means you probably don't need it in the first place, and you're liable to shoot yourself in the feet.
NiLuJe is offline   Reply With Quote
Old 10-25-2010, 03:40 AM   #5
Jongwe
Junior Member
Jongwe began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3G
Quote:
Originally Posted by NiLuJe View Post
+1.

If you don't know how to make it work, it means you probably don't need it in the first place, and you're liable to shoot yourself in the feet.
-1

I am proficient in linux however the reason I want the ssh to work is to transfer files via sftp instead of having the usb cable with me. I have managed to get the shell up and running I just need some more info regarding the ssh keys and where to copy them ect. I havent managed to find anything available.

And remember assumption is the mother of all.....
Jongwe is offline   Reply With Quote
Old 10-25-2010, 03:48 AM   #6
Rinzwind
Connoisseur
Rinzwind began at the beginning.
 
Posts: 96
Karma: 16
Join Date: Oct 2010
Location: Netherlands
Device: Kindle 3G UK 3.03
Quote:
Originally Posted by Jongwe View Post
-1

I am proficient in linux however the reason I want the ssh to work is to transfer files via sftp instead of having the usb cable with me. I have managed to get the shell up and running I just need some more info regarding the ssh keys and where to copy them ect. I havent managed to find anything available.

And remember assumption is the mother of all.....
Is this enough?
https://www.mobileread.com/forums/sho...75&postcount=2

Rinzwind is offline   Reply With Quote
Old 10-25-2010, 03:55 AM   #7
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Jongwe: And you'll notice it's also in the readme...
NiLuJe is offline   Reply With Quote
Old 10-25-2010, 02:36 PM   #8
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
Complete beginning to end instructions for usbnet are not available and one has to piece the needed steps from documentation and forum posts and mix in some experimentation. Not sure why it's not as well supported as the other hacks as this doesn't seem 'more linux' than usual. But here is how I got ssh over wifi working with auth keys in a Windows environment:
  1. Install usbnet hack.
  2. Mount kindle and edit file \usbnet\etc\config
    K3_WIFI="true"
    K3_WIFI_SSHD_ONLY="true"
  3. Download and run puttygen: http://www.chiark.greenend.org.uk/~s.../download.html
  4. With (x) SSH-2 RSA selected, click Generate.
  5. Copy the text under 'Public key for pasting into OpenSSH authorized_keys file'.
    Do not be tricked by: Conversions > Export OpenSSH Key.
  6. Paste into a new file named authorized_keys.
    I previously thought authorized_keys was a folder to be created and placed my key file under that... wrong!
  7. If you plan to use the filezilla client for sftp, do not enter a key passphrase as that is not supported. Click Save Private Key to the local PC.
  8. Copy file authorized_keys to \usbnet\etc\
  9. Unmount kindle.
  10. Turn on WIFI. The kindle should obtain an IP address from your wireless access point. A quick way to find the kindle's IP is to go to Settings and then type 711. On a private WIFI network, set up a DHCP IP reservation so your kindle IP is always the same. Or just change your kindle wifi settings for a static ip address (the usbnet config file can not be used to set the WIFI ip address).
  11. On Kindle, type:
    ;debugOn
    ~usbNetwork
    ;debugOff
Quote:
INFO: One issue you'll face is that after transferring files over, the Kindle doesn't know to refresh its index as it does when you unmount from usb. Alt-Z will usually show updates in the Pictures folder but does nothing for Documents. From a ssh connection, you can run the following to trigger a refresh: "dbus-send --system /default com.lab126.powerd.resuming int32:1". If you mix this command with Alt-Z, you may get duplicates so just stick to the command. Also for some reason, new documents may show up but not shown as the newest, so sort by title to find them.
Quote:
INFO: If you just installed an usbnet update and can no longer SSH to your Kindle over WIFI even though you can ping it, you should restart the Kindle. This may happen if your Kindle restarts from an update with the usb cable attached.
To connect with Putty for shell access:
  1. Configure your putty session to connect to the Kindle's IP over SSH. Under Connection > SSH > Auth > Private key file for authentication, choose the private key you saved locally.
  2. Connect to the kindle, enter username root, enter key passphrase if you used one, and you should be in. To save a step, you can set Connection > Data > Auto-login username: root.
  3. As you can tell from the login banner, if you need to change anything that is not in /mnt/us, then you will need to first mount the filesystem as RW (readwrite):
    mntroot rw
    Once you're done, you should put the filesystem back to RO (readonly):
    mntroot ro

To connect with Filezilla client to transfer files:
  1. Edit > Settings > Connection > SFTP > Add keyfile, choose the private key you saved locally.
  2. Create a new connection entry with server type: SFTP, Logon Type: normal, User: root, and blank password.
  3. You can save some time by setting your Default Remote Directory to: /mnt/us to match the directory you see when mounting over usb.
  4. Unfortunately, filezilla doesn't support sending custom commands over sftp, which makes using it annoying. See WinSCP below for a better alternative.

To connect with WinSCP client to transfer files:
  1. Create a new session filling in fields for 'Host name', User name (root), and Private Key File (WinSCP does not support private key passphrases).
  2. To add a custom command for refreshing the Kindle:
    1. Preferences > Commands > Add...
    2. Description: Refresh Kindle
    3. Custom Command: dbus-send --system /default com.lab126.powerd.resuming int32:1
    4. (x) Remote command
    5. Select a Keyboard Shortcut if you like.
    To invoke the command, either Files > Custom Commands > Refresh Kindle
    or Options > Toolbars > Custom Command Buttons or use the keyboard shortcut if defined.

Note that if you reboot your Kindle, the hack is disabled and you have to run the following commands again:
;debugOn
~usbNetwork
;debugOff

Alternatively, to have usbnet be enabled after a reboot, simply rename \usbnet\DISABLED_auto to auto and reboot.

Since you're using SSH over wifi instead of over usb, a setting of 'auto' is not so dangerous since you can still mount the kindle over usb to fix something. People using networking over usb can run into an issue where they change something on the kindle that prevents them from connecting over SSH, but since they have auto enabled, they can't mount the kindle to fix it.

Quote:
INFO: if you keep the Kindle on usb (unmounted or charger), then the WIFI will stay on even when the screensaver kicks in.

Last edited by badbob001; 11-17-2010 at 01:37 PM. Reason: Added WinSCP section, Refresh command, Edits
badbob001 is offline   Reply With Quote
Old 10-25-2010, 03:17 PM   #9
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Note that, AFAIR, FileZilla *can* handle passworded private keys, if you use an ssh agent (I'm pretty sure that it handles at least putty's agent on Windows, and OpenSSH's agent on Linux).

Last edited by NiLuJe; 10-25-2010 at 03:20 PM.
NiLuJe is offline   Reply With Quote
Old 10-25-2010, 03:29 PM   #10
Rinzwind
Connoisseur
Rinzwind began at the beginning.
 
Posts: 96
Karma: 16
Join Date: Oct 2010
Location: Netherlands
Device: Kindle 3G UK 3.03
Quote:
3. Download and run puttygen: http://www.chiark.greenend.org.uk/~s.../download.html
Linux/Ubuntu: puttygen is inside package putty-tools.
Rinzwind is offline   Reply With Quote
Old 10-25-2010, 03:51 PM   #11
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Or, even better, use your favorite terminal emulator and OpenSSH.

Don't bother with Putty on *nix unless you really, really like the putty terminal (which I don't), or need to test it.
NiLuJe is offline   Reply With Quote
Old 10-25-2010, 03:57 PM   #12
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
I did mention that my instructions are for a Windows environment, whose users would likely be less familiar with OpenSSH.

Last edited by badbob001; 10-25-2010 at 04:02 PM.
badbob001 is offline   Reply With Quote
Old 10-25-2010, 04:01 PM   #13
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
Quote:
Originally Posted by NiLuJe View Post
Note that, AFAIR, FileZilla *can* handle passworded private keys, if you use an ssh agent (I'm pretty sure that it handles at least putty's agent on Windows, and OpenSSH's agent on Linux).
Sort of. It's like saying that all email smtp clients support ssl/tls if they go through stunnel.

Setting up a ssh agent is probably too much infrastructure for something that is meant to replace plugging in an usb port.
badbob001 is offline   Reply With Quote
Old 10-25-2010, 04:23 PM   #14
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@badbob001: My message was only addressing Rinzwind post .

Granted .

I was gonna say 'But you'll have to enter your password each time!', but if it's a passwordless key, that's a moot point. Just please don't use a passwordless key pair for anything serious .

Last edited by NiLuJe; 10-25-2010 at 04:28 PM.
NiLuJe is offline   Reply With Quote
Old 10-25-2010, 05:30 PM   #15
coolbird
Junior Member
coolbird began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle3
After copying the ebook(s) through sftp to kindle 3, how to get the new books to show up? seems like the only way I can get them to show up is to reboot the kindle, which really defeats the purpose of this wifi sftp transfer thingy.
coolbird is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
ubuntu 9.04 ssh help please lampadena OpenInkpot 9 08-18-2009 11:21 PM
Kindle + SSH? Elegant Forkbomb Amazon Kindle 3 03-05-2009 08:12 AM
iLiad How do I get ssh access to my 2.7.1 iLiad? narve iRex Developer's Corner 3 11-28-2006 05:59 PM


All times are GMT -4. The time now is 01:08 AM.


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