09-23-2013, 05:26 PM | #1 | ||
( ͡° ͜ʖ ͡°){ʇ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
|
sshfs
[root@kindle bin]# /lib/ld-linux.so.3 --library-path \
/mnt/us/extensions/sshfs/lib /mnt/us/extensions/sshfs/bin/sshfs -V Quote:
[root@kindle bin]# /lib/ld-linux.so.3 --library-path \ /mnt/us/extensions/sshfs/lib /mnt/us/extensions/sshfs/bin/sshfs -h Quote:
EDIT: (but actually you could make some now if you want) PLEASE PLEASE PLEASE READ THE USAGE NOTES: HERE https://www.mobileread.com/forums/sho...44&postcount=5 you WILL NEED SSH ACCESS TO THE DEVICE (one time at least) after that you should be cool. Last edited by twobob; 09-23-2013 at 06:50 PM. |
||
09-23-2013, 05:29 PM | #2 |
( ͡° ͜ʖ ͡°){ʇ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
|
This ones for you <AcidWeb> :P
|
Advert | |
|
09-23-2013, 06:24 PM | #3 |
( ͡° ͜ʖ ͡°){ʇ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
|
I have slightly reworked this into a simple script.
reposting. |
09-23-2013, 06:28 PM | #4 | ||
( ͡° ͜ʖ ͡°){ʇ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
|
[root@kindle bin]# /mnt/us/extensions/sshfs/sshfs
Quote:
Quote:
to tidy up... |
||
09-23-2013, 06:43 PM | #5 | ||
( ͡° ͜ʖ ͡°){ʇ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
|
there are a couple of issues surrounding this.
a) ssh - you need it on the kindle. to this end a client is provided: /mnt/us/extensions/sshfs/bin/ssh b) YOU MUST RUN THIS (ssh) SEPARATELY AT LEAST ONCE before you run the script. WHY? /mnt/us/extensions/sshfs/bin/ssh me@192.168.1.1 Quote:
Quote:
after this you can run the script /mnt/us/extensions/sshfs/sshfs with impunity. |
||
Advert | |
|
09-23-2013, 06:46 PM | #6 |
( ͡° ͜ʖ ͡°){ʇ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
|
Maybe Niluje knows a way to tidy all this rubbish up.
|
09-23-2013, 08:32 PM | #7 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Right, that came up the last time sshfs on the Kindle's side came up: it needs an ssh client in $PATH, one that's actually called ssh. USBNet only install the dropbear client as dbclient, IIRC. No idea if it would handle dropbear's client, or if it actually requires OpenSSH...
Either way, I have an OpenSSH build on hand, since I build the server, so that's not terribly annoying. One other thing: since part of FUSE actually lives in the kernel, I'm not quite sure bundling a newer fuse userland library and/or one built against a different Kernel is completely safe. If it blows up, that's probably why ;p. Not that familiar with the FUSE API/ABI, so the point may be moot. Probably can't get around the fingerprinting, that's SSH after all . It'll probably need an SSH client that stores/expects a known_hosts file in a directory that doesn't go poof after a reboot, though. |
09-23-2013, 08:39 PM | #8 |
( ͡° ͜ʖ ͡°){ʇ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
|
I did mess around with "expect" for a while to pass the "Y" back into the question... but meh I hate expect... and yes this time was just as little fun as last time.
So I ditched that idea. Add the fingerprinting, get over it. Do that everytime if you don't change away from /var/tmp/root... Perhaps this will honour the $HOME env_var, never thought of that. also built sshpass for the exceptionally lazy - may bundle one day... undecided. Bottom line is: if you expect to neatly connect to the ssh on your PC? expect to do a tiny bit of work... Thanks for giving it the eye-over. At least you didn't LOL at my efforts Thanks dude. EDIT: perhaps I could wrap this in a KTERM??? Then at least the average user would be able to see the login interface without too much "effort" hmmm.... Last edited by twobob; 09-23-2013 at 09:46 PM. |
09-23-2013, 08:57 PM | #9 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yeah, OpenSSH does looks at ~ for the .ssh directory, but I don't remember if it honors HOME, or check the passwd file.
IIRC, my build looks for the global one in /mnt/us/usbnet/etc, so I'll try with that. This is a pretty specific piece of software for a pretty specific usage, I don't think it needs more hand-holding than this . If it works as it should when used properly, done! . |
09-23-2013, 08:58 PM | #10 |
( ͡° ͜ʖ ͡°){ʇ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
|
fair enough.
You know me. Like to hold hands... It's nice piece of kit though! coupled with KOreader this really kicks some A |
09-23-2013, 09:36 PM | #11 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
'kay, seems to work fine with my OpenSSH build, it calls ssh itself without need to do it beforehand, and the known_hosts file behaves...
AFAICT, it needs the OpenSSH client, it's using settings the dropbear client doesn't handle. I'll probably merge it into USBNet . Last edited by NiLuJe; 09-23-2013 at 09:50 PM. |
09-23-2013, 09:45 PM | #12 |
( ͡° ͜ʖ ͡°){ʇ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
|
YAY!!!!
I did something useful! *pats self on back* Thanks mate EDIT: Wait! does that mean I am gonna get a credit in the USBNET notes? I may explode with joy :P Last edited by twobob; 09-23-2013 at 09:48 PM. |
09-24-2013, 01:46 AM | #13 |
Linux devotee
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
The known_hosts check can be surpassed by adding this to ssh_config:
Code:
Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null LogLevel ERROR |
09-24-2013, 01:55 AM | #14 |
Linux devotee
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
|
OpenSSH client for Kindle sounds very interesting.
OpenSSH client + proxytunnel + web proxy = SSH over 3G from Kindle Keyboard 3G. |
09-24-2013, 02:35 AM | #15 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Driving SSH(fs) via expect is a bit awful of an idea, SSH has it's private/public key authentification for doing such stuff seamlessly :-)
Last edited by hawhill; 09-24-2013 at 10:23 AM. |
Tags |
fuse, kindle, kindle 5, kindle paperwhite, sshfs |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error when trying to mount via sshfs | techiemonkey | Kindle Developer's Corner | 11 | 08-09-2012 08:43 PM |