![]() |
#46 |
Connoisseur
![]() Posts: 58
Karma: 26
Join Date: Dec 2011
Device: K3G, KF2
|
After using this, along with the commands described here, and now I can't turn the WiFi over SSH off, to use USB again. Whenever I try the deactivating command, it gives an error of "unexpected ;". Does anyone know how to disable the WiFi mode?
My config file says K3_WiFi is disabled, yet it still works, so I don't know what to do. Last edited by sjheiss; 01-27-2012 at 07:07 PM. |
![]() |
![]() |
![]() |
#47 |
hub
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
As there is no folder '\usbnet\etc\config', I was wonderig if anyone could get ssh over wifi in Kindle Touch?
And if so, can usbnetwork and ssh-wifi coexist? |
![]() |
![]() |
![]() |
#48 |
Member
![]() Posts: 10
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch 3G
|
+1
Use Kindle Touch. Going over instruction. Where should I put the authorized_keys There is no \usbnet\etc folder on KT. |
![]() |
![]() |
![]() |
#49 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
So confirm that the USBnet package you installed, actually was installed and is working. The USBnet packages that include ssh, use the Dropbear implementation. When lost on any *nix system, remember that the man(ual) command is your friend. In the *nix world, you will often see the accronum: RTFM with an obvious meaning. ![]() Outside of the *nix world, ask your favorite web search engine. Here, man dropbear man dropbearkey man dbclient Will look like this: http://linux.die.net/man/8/dropbear When reading a *nix man page, always read to the bottom of the page. There will (almost always) be a "Files" and a "See Also" section (say: thank you, BSD). |
|
![]() |
![]() |
![]() |
#50 |
Member
![]() Posts: 10
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch 3G
|
The latest USBNet (1.x) don't create ANY usbnet folder on root partition.
Anyways the \usbnet\* doesn't look like Linux path.. If I search for dropbear, I find dropbear executable in /usr/local/sbin/ and dropbear folder in /usr/local/etc Putting authorized_keys in any of them doesn't make it work. So the question is quite reasonable here. How to make it work on current USBNet on Kindle. |
![]() |
![]() |
![]() |
#51 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Code:
[root@kindle .ssh]# pwd /tmp/root/.ssh [root@kindle .ssh]# ls -la drwxr-xr-x 2 root root 60 Feb 12 08:54 . drwx------ 6 root root 120 Feb 12 08:52 .. -r-------- 1 root root 408 Feb 12 08:53 authorized_keys [root@kindle .ssh]# cat authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwbjpu0KFwCsdfJsHvFd9THL+vwEx3B7A4RrG3QlG/46+Tl7QzQuQchVULh608SNCnd0J5LjL+PIxlXy1nhYvq7rdw5iH0NQc4wjEUuJ8qAhQF6qNk9Xzb1HXYaDzkh2zhfZaBrgQOvVyJt6XT9XM81UPQJ7HbJQTioDYTtdGDQeUEnEJm0f8pOLhy7nWxCdpOW4U9QCHgGn7yp4dK0fUBp6MCp56r7bLpFvB145yC6yp/oM6Xp/01JS4cZOwqP7HisNIdMuEHlXIKGSWuGNr7bGCHM+euAyVN7dQq1r0oGgt3O50zKdkeO9HZi6DF17/QufjBENe5uTsP4RhqmV0jw== ixtab [root@kindle .ssh]# ![]() |
![]() |
![]() |
![]() |
#52 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The most recent one I have looked inside of myself was marked as: -0.35.N The only thing I can think of for you to do is open up the update_*_install.bin package you used to install the USBnet package from and read the scripting to see what it did and/or expects to have done. The "kindle_update_tool.py" script will decrypt that *.bin for you, The usual tools will un-compress and un-archive the *.tgz file after decryption. That python script has been included in every Jailbreak and USBnet package I have seen to date (under /src of the *.zip the packages are shipped in). |
|
![]() |
![]() |
![]() |
#53 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
It is located in the /tmp part of the file tree. That part of the file tree should be emptied by a cold boot (not a resume from sleep). The "normal" (non-embedded system) location for that file is /root/.ssh/authorized_keys. But let us forge ahead under the assumption that the Kindle is never cold booted (normally, it isn't) If ssh is still not working for you, we need to figure out how to get dropbear to look for the public key(s) under /tmp/* rather than under ~/.ssh If I put the public key line you posted into any of my machines (and opened a hole in the fire-wall for you) - you would be able to ssh into those machines. Note: That is a single line record in authorized_keys and that file may include multiple keys (each on a line of their own). And I am pretty sure that it must have the proper line ending (LF) not Windows (CRLF) or Mac (CR). Would not hurt to check what that single line record is using for a line ending. Now try with full debug reporting on your ssh client (double v): ssh -vv <whereever> If what you get doesn't make any sense, post the entire output. Last edited by knc1; 02-17-2012 at 08:52 AM. |
|
![]() |
![]() |
![]() |
#54 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Code:
[root@kindle fonts]# grep ^root /etc/passwd root:x:0:0:root:/tmp/root:/bin/sh |
|
![]() |
![]() |
![]() |
#55 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
But this is a Kindle Touch, isn't it? The one with so many trouble reports? Perhaps the putting root's home directory into the /tmp directory that is subject to clean-ups is part of the source of those problems. We should start a thread about moving root's home directory to somewhere that isn't volitale (sp?) I can't be of much help yet - my serial adapter cable is still two weeks away. |
|
![]() |
![]() |
![]() |
#56 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Well, this:
Quote:
I personally think that it's actually a wiser choice (from Amazon's perspective) to put the root home directory under /tmp/ than to make it persistent. This way, even if something inadvertently shoots itself in the foot, at least such settings are cleared after a reboot. (Though I don't know which kind of setting would qualify here). |
|
![]() |
![]() |
![]() |
#57 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The quote you made was from my post #53 The information on root's home directory was provided in your post #54 I admit that my crystal ball was off-line which prevented me from knowing what you would post __after__ I made my post. Perhaps you could post a link to what you have in mind to write the next time you make a post, then I could take into consideration what you have not (yet) but will in the future, write. |
|
![]() |
![]() |
![]() |
#58 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Well, I thought that it was pretty much crystal clear for anyone familiar with how SSH works from post #51 already that /tmp/root was root's home directory.
I also misunderstood your "Yes, I see that from your post." in post #55 as referring to post #51 (instead of #54, which you obviously meant), which is why I posted reply #56. Maybe "Yes, I now see that from your new post" would have been clearer. Anyway, let's both stop the nitpicking and post-counting and return to actual problems ![]() |
![]() |
![]() |
![]() |
#59 |
Connoisseur
![]() Posts: 58
Karma: 26
Join Date: Dec 2011
Device: K3G, KF2
|
So, on Oneiric Ocelot I can't get usbnet to work via telnet or SSH. If I try to telnet, it says that all directories under /mnt/ do not exist (didn't check others, but /mnt/us/ access is a necessity), and if I try SSH/SFTP, it asks for a password, even though for most intents and purposes there is not a password. Has anyone else had this problem?
I'd love to be able to use my Kindle on Linux. Thanks for any help provided. ![]() |
![]() |
![]() |
![]() |
#60 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
???
Sorry, I don't get your post. When does telnet complain about anything relating to "/mnt/" directories (and why does it do so)? And of course there is a password required to SSH/SFTP to the device. Check the documentation of the usbnetwork package for your device, I'm sure there is something in there relating to passwords. Finally, your device does not behave any differently whether your are accessing it from Windows or Linux. So your last sentence is also somewhat mysterious to me ![]() Maybe it's best to copy/paste some terminal output of what you did (and what went wrong). |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |