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 01-23-2014, 11:09 PM   #1
alethiophile
Member
alethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy blue
 
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
sshd will not start in usbnetwork mode

I recently started trying to use usbnetwork again. (I have to reinstall the install.bin file for it periodically, because if I accidentally take the Kindle off airplane mode then a firmware update usually happens, and that undoes usbnetwork.) After reinstalling, the usbnetwork bit worked fine; however, sshd did not start. Accessing it via telnet, I found that attempting to manually start sshd yields "/mnt/us/usbnet/empty must be owned by root and not group- or world-writable".

/mnt/us/usbnet/empty, of course, exists, but is set mode 777. chmod will not work on it, because the filesystem is fat32. /mnt/us is some kind of odd bind mount of /mnt/base-us, but in the latter, umask is set to 022, and so group and world cannot write anywhere. I can't find a way to make the bind mount (fuse.fsp, whatever that is) do the same thing.

How should this be fixed? How was it ever working in the first place? Did something change?
alethiophile is offline   Reply With Quote
Old 01-23-2014, 11:39 PM   #2
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Dunno about that, but have you tried the BackDoorLock hack or An easier way to disable auto-updates?
eschwartz is offline   Reply With Quote
Advert
Old 01-24-2014, 04:25 AM   #3
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
@alethiophile: I should have fixed that a good while ago, which version of USBnet are you using?
NiLuJe is offline   Reply With Quote
Old 01-24-2014, 11:34 AM   #4
alethiophile
Member
alethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy blue
 
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
Uh...'the one I downloaded when I got this Kindle', I think. The file is 'update_usbnet_0.6.N_install.bin'.

And thanks for the pointers to disabling auto-updates. I'll look into that once I get sshd fixed.
alethiophile is offline   Reply With Quote
Old 01-24-2014, 02:34 PM   #5
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
@alethiophile: That is terribly old, which explains why it's not working .
NiLuJe is offline   Reply With Quote
Advert
Old 01-24-2014, 06:44 PM   #6
alethiophile
Member
alethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy blue
 
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
Okay, having installed the newest version SSH now works.

It seems to still start the telnetd, even though both USE_WIFI and USE_OPENSSH are true. How do you forestall that?
alethiophile is offline   Reply With Quote
Old 01-24-2014, 07:19 PM   #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
@alethiophile: You don't . If it really bothers you, comment the call in the usbnetwork script.
NiLuJe is offline   Reply With Quote
Old 01-25-2014, 01:04 AM   #8
alethiophile
Member
alethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy bluealethiophile can differentiate black from dark navy blue
 
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
Okay. (Does the telnetd not listen on wifi, then? It seems quite the hole otherwise.)
alethiophile is offline   Reply With Quote
Old 01-25-2014, 08:21 AM   #9
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 alethiophile View Post
Okay. (Does the telnetd not listen on wifi, then? It seems quite the hole otherwise.)
Did you run:
lsof | grep tel
on your machine?
What did it say about telnet sockets?

Did you try to connect via telnet over wifi?
What happened?

If you did connect over wifi, did telnetd ask you for a password?

This additional information would help us understand the problem you are seeing as a "hole".

Here is an example of the lsof output, filtered by grep, (for sshd, not telnet, and on a non-kindle machine, but the listing format will be the same):
Code:
sshd       1304       root    3u     IPv4       9587      0t0        TCP *:ssh (LISTEN)
sshd       1304       root    4u     IPv6       9589      0t0        TCP *:ssh (LISTEN)
I.E: The above machine has two network sockets open (IPv4 and IPv6) using TCP protocol, listening on all (*) address:port=ssh combinations.

If you find telnet listening on the address (or all addresses) of the Wifi interface, then check your firewall incoming (state=new) rules for the Telnet port on that Wifi interface.
Since it does the program no good to listen, if packets can't get through your firewall.

Last edited by knc1; 01-25-2014 at 08:33 AM.
knc1 is offline   Reply With Quote
Old 01-25-2014, 10:36 AM   #10
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
@alethiophile: The telnet port is behind the default firewall over WiFi .
NiLuJe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Calibre on Windows in debug mode hakan42 Development 9 04-10-2024 05:34 PM
0.9.7: Anomaly viewer, start viewer in full screen mode DrChiper Calibre 2 11-23-2012 06:33 AM
Start usbNetwork with launchpad? giorgio130 Kindle Developer's Corner 5 12-03-2011 10:19 AM
iLiad Semi-Standalone sshd? grayfox iRex Developer's Corner 9 02-09-2008 02:50 PM
iLiad starting sshd over wireless? thetechnobear iRex Developer's Corner 5 11-28-2007 01:49 PM


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


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