05-14-2012, 12:10 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Can't SSH Into Kindle Touch
Hi, I just received a Kindle Touch as a gift.
I would like to ssh into the device. I followed instructions to enable USBnet, and I am able to ping the Kindle Touch. However, when I try to ssh I get "connection refused". Was this disabled in the latest firmware or something? |
05-14-2012, 04:42 PM | #2 | |
Warrior Princess
Posts: 25
Karma: 8694
Join Date: Sep 2011
Location: Los Angeles
Device: Kindle 4
|
Quote:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 05:cd:09:0b:9c:00:61:d0:19:c7:1b:27:12:2f:e8:db. Please contact your system administrator. Add correct host key in /Users/Dani/.ssh/known_hosts to get rid of this message. Offending key in /Users/Dani/.ssh/known_hosts:1 RSA host key for 192.168.15.244 has changed and you have requested strict checking. Host key verification failed. firstname-lastname-MacBook-Pro:~ Dani$ |
|
05-14-2012, 05:04 PM | #3 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
You can get that RSA Key warning when you have the same IP address defined for different devices. A kindle touch using SSH in diags mode looks like a different device from when it is booted in main mode (using simple USBnet).
Your authentication failure is happening in your host PC. The error messages says what you need to do. You need to edit /Users/Dani/.ssh/known_hosts like it says. You will need to do that each time you try to connect from a different device or bootmode that uses this IP address, or do a more permanent solution. |
05-14-2012, 05:24 PM | #4 | |
Warrior Princess
Posts: 25
Karma: 8694
Join Date: Sep 2011
Location: Los Angeles
Device: Kindle 4
|
Quote:
Last edited by timelysarcasm; 05-14-2012 at 05:35 PM. |
|
05-14-2012, 05:34 PM | #5 | ||
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
A permanent solution is to make the device present the same key whether booted to diags or main, by copying the dropbear key files from the diags partition to the main partition, or vice versa. If this is happening not because you're connecting to a single device in different modes, but indeed to different devices, then synchronize the keys across the devices, or give each device a unique IP address (in addition to the above). Quote:
PS: Just before this gets out of hand (and I hope that this notice is actually not needed): please note that this is the "Kindle developer's corner", not a "Linux newbies" forum. If you attempt to use SSH, you're supposed to know what you are doing, or to be willing to read the appropriate documentation. There are plenty of tutorials online on how to get started with the command line on Linux. Last edited by ixtab; 05-14-2012 at 05:41 PM. |
||
05-14-2012, 05:53 PM | #6 | |
Warrior Princess
Posts: 25
Karma: 8694
Join Date: Sep 2011
Location: Los Angeles
Device: Kindle 4
|
Quote:
I know for sure I never had to deal with editing a known hosts file. Regardless, I figured it out on my own. Thanks. |
|
05-14-2012, 06:43 PM | #7 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The man(ual) command is your friend - use it. I.E: man ssh Plus there will be a list of "see also" with the manual section numbers. Use "man" on those also. If you don't have a *nix installation - enter the same into a google search box - google knows where to find every page of the *nix manuals. P.S: If your on a Mac - then you at the home of OpenSSH (OpenSSH is a BSD project app. - just ported to everything else in the world). |
|
05-14-2012, 07:14 PM | #8 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Although generally recognized as UNSAFE, here is how I fixed that little problem on my host PC: user@mint745 ~/.ssh $ cat config Host 192.168.15.* IdentityFile ~/.ssh/keypair1-openssh IdentityFile ~/.ssh/keypair2-openssh User root StrictHostKeyChecking no UserKnownHostsFile /dev/null <== notice this line here! user@mint745 ~/.ssh $ By redirecting to /dev/null, the file contents will stay deleted. Don't do this at home, folks! Last edited by geekmaster; 05-14-2012 at 07:21 PM. |
|
05-14-2012, 11:25 PM | #9 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
What else can I try to diagnose my issue?
It's not the known_hosts file. I can ping the kindle, but it seems like sshd is not running on the device. |
05-15-2012, 12:05 AM | #10 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Hmmm... You're the first person to report this issue, at least from what I am aware of. I suggest to try the "Windows way", i.e., to uninstall and reinstall usbnetwork, you never know...
If that doesn't help, dump the log after booting by using the ;dm shortcut and see if there is any usable hint. |
05-15-2012, 07:54 AM | #11 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
nmap xxx.yyy.zzz.000/24 What you are looking for in the report is an open port number 22. |
|
05-15-2012, 11:04 AM | #12 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Q1) Did you install the "simple USBnet" hack? Q2) Did you install "mmcblk0p2_ssh" (diags with SSH pre-installed)? Q3) Is your kindle booted to main or diags when you try to SSH in? Q4) How did you "enable" USBnet? We do not have enough information to help you. Please provide answers for the questions above so that we CAN help you. Thanks. EDIT: There are reports that the latest OTA 5.1.0 firmware update from amazon DELETES the dropbear files needed for sshd when you reboot your kindle. Perhaps that is your problem. We may need a hack that keeps dropbear on the USB drive, like the K3 usbnetwork hack. Last edited by geekmaster; 05-15-2012 at 11:08 AM. |
|
08-29-2012, 03:23 AM | #13 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2012
Device: Kindle Touch 5.1.2
|
I had this problem. I installed the launcher before installing simple_usbnet_1.1.zip. I didn't need to uninstall the launcher first or anything like that.
Last edited by miwi; 08-29-2012 at 03:30 AM. |
10-14-2012, 01:59 PM | #14 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
|
|
10-15-2012, 09:26 PM | #15 |
Enthusiast
Posts: 29
Karma: 16752
Join Date: Sep 2012
Device: Kindle Touch
|
Hi,
I had a hard time connecting ssh, my error was something similar, time out connection fail port 20, I can't recall exactly now, but I searched the forum and lot of peaple had it. I also remember reading what geekmaster recomends you. Well it may sound idiotic, but I finally made it, unplugin and pluging again the usb cable of the kindle to the pc. Really. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch USB Networking/SSH | ChrisKaos | Kindle Developer's Corner | 55 | 02-22-2013 09:53 AM |
Kindle Touch SSH access? | firite | Kindle Developer's Corner | 3 | 05-03-2012 09:36 AM |
how to ssh into Kindle | thomass | Amazon Kindle | 4 | 04-11-2011 10:48 AM |
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 |