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 02-25-2013, 03:52 PM   #1
torchjectory
Junior Member
torchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texan
 
Posts: 4
Karma: 18404
Join Date: Feb 2013
Device: none
how to get auth keys for ssh via os x onto paperwhite

i really want to be able to sftp into my paperwhite via wifi, so that i can both usb mass storage and access the filesystem as the same time.

a few problems:

1) no password on 5.3 up.

2) i don't know how to set auth keys on/for/with os x.

3) will transmit then work after that?

4) as see by my shenanigans, i'm not entirely clear on
Code:
USE_WIFI
(although i think i am, now)

and

Code:
USE_WIFI_SSHD_ONLY
can anyone steer me in the right direction?
torchjectory is offline   Reply With Quote
Old 02-25-2013, 04:02 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
ssh-keygen

press enter lots of times.

copy the contents of your .pub key onto the device in /mnt/us/usbnet/etc/authorized_keys file. (doesn't exist make one)
USE_WIFI = TRUE
USE_WIFI_SSHD_ONLY=FALSE
twobob is offline   Reply With Quote
Old 02-25-2013, 04:13 PM   #3
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by torchjectory View Post
i really want to be able to sftp into my paperwhite via wifi, so that i can both usb mass storage and access the filesystem as the same time.

a few problems:

1) no password on 5.3 up.

2) i don't know how to set auth keys on/for/with os x.

3) will transmit then work after that?

4) as see by my shenanigans, i'm not entirely clear on
Code:
USE_WIFI
(although i think i am, now)

and

Code:
USE_WIFI_SSHD_ONLY
can anyone steer me in the right direction?
1) There is, but the usbnetwork hack does not require it when connecting through usb. You can manually set the password using the passwd command, just like on any other Linux system.

2) Read the README_FIRST.txt of the usbnetwork package. There is a reason why it was named README_FIRST.txt.
Quote:
* Now would be a good time to setup your public key if you intend to auth over SSH via shared keys.
Which you should, because it's awesome .
The pubkeys are stored, in OpenSSH format, in usbnet/etc/authorized_keys (ie. you can safely use
a ~/.ssh/authorized_keys2 file from OpenSSH).
Also, it's the preferred method of auth when using SSH over WiFi, because it's way more elegant
than switching (or remembering) the root password (Because you *WILL* need to auth properly over WiFi).
If you need further instructions, ask your favorite search engine about "HOWTO SSH shared keys" or similar. You will find tons of tutorials. Here's a link just for you.

3) yes.
ixtab is offline   Reply With Quote
Old 02-25-2013, 04:26 PM   #4
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
lol... lmgtfy seems to return some weird results these days..

or perhaps it is the "Google Bubble" that seems to get so much moaning press lately.

but yeah... the readmefirst is a good place to start.

twobob is offline   Reply With Quote
Old 02-25-2013, 04:28 PM   #5
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
Deja Vu!

HEHEHEHEHEHE
twobob is offline   Reply With Quote
Old 02-25-2013, 07:09 PM   #6
knc1
Embedded Cheerleader
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: 6,660
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
If you would use the "sort by prefix: HowTo" at the top of this forum, you will find a detailed ssh/scp article at postition 8 in the list.
knc1 is offline   Reply With Quote
Old 02-25-2013, 07:31 PM   #7
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
Okay I re-read the top thread.

There is an EXCELLENT RESOURCE HERE

hope that helps
twobob is offline   Reply With Quote
Old 02-25-2013, 11:30 PM   #8
torchjectory
Junior Member
torchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texan
 
Posts: 4
Karma: 18404
Join Date: Feb 2013
Device: none
Quote:
Originally Posted by twobob
ssh-keygen

press enter lots of times.

copy the contents of your .pub key onto the device in /mnt/us/usbnet/etc/authorized_keys file. (doesn't exist make one)
USE_WIFI = TRUE
USE_WIFI_SSHD_ONLY=FALSE
keygen. got it. or, rather i will look for it.
actually, i'm not sure.
is this a keygen on the mac or the paperwhite?

Quote:
Originally Posted by ixtab View Post
1) There is, but the usbnetwork hack does not require it when connecting through usb. You can manually set the password using the passwd command, just like on any other Linux system.
this might actually be the most handy thing for me. i did ssh in at one point, and while i've used this command before, i'm not so comfy in the command line to think of it first. thanks. i think this might be, for me, the most helpful piece you sent my way.

Quote:
Originally Posted by ixtab
2) Read the README_FIRST.txt of the usbnetwork package. There is a reason why it was named README_FIRST.txt.
i did. a lot. and maybe it just didn't make sense to me, but, really, i did.


Quote:
Originally Posted by ixtab
If you need further instructions, ask your favorite search engine about "HOWTO SSH shared keys" or similar. You will find tons of tutorials. Here's a link just for you.
um, believe it or not (probably not) but, i did this, too. granted, with much crappier terms, because i'm not fully soaked in linux taxonomy.

Quote:
Originally Posted by ixtab
3) yes.
good to know. still kinda freaky. not sure how it will play out.

Quote:
Originally Posted by knc1
If you would use the "sort by prefix: HowTo" at the top of this forum, you will find a detailed ssh/scp article at postition 8 in the list.
saw that. the scp and overly-command line stuff kinda made my head spin. i actually got a LOT farther with this thread (as stepped me through the command line at a much more familiar level).

not unwilling to learn, but too much overwhelms me. so, in a round about way, i guess i was asking to be spoonfed a bit when the stove and ingredients were more than my kindergarten brain was ready for.

thanks you guys. i will try all of this. i cannot guarantee i won't be back with more questions, but i can guarantee you don't have to answer them.
torchjectory is offline   Reply With Quote
Old 02-25-2013, 11:56 PM   #9
torchjectory
Junior Member
torchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texantorchjectory might easily be mistaken for a Texan
 
Posts: 4
Karma: 18404
Join Date: Feb 2013
Device: none
ok, back again.

thanks, to all of you, and especially ixtab for the push in the right direction with passwd.

now, (and yes, i promise i have read both readme and readme_first, and they just aren't clear enough for me, AND i've even searched the forums here to no avail) i'd like for usbnet wifi to be on at boot/reboot. i understand renaming the
Code:
DISABLE_auto
to
Code:
auto
will make this available at boot, but, it disables mass storage.

is there a way to have mass storage (via usb) on AND sftp/ssh (via wifi) simultaneously at boot? is that what
Code:
USE_WIFI_SSHD_ONLY = true
and i'm just not getting it?

or, does it have to be both
Code:
auto
AND
Code:
USE_WIFI_SSHD_ONLY = true
to give me what i want?

sorry to be a pest—
tj
torchjectory is offline   Reply With Quote
Old 02-26-2013, 08:58 AM   #10
knc1
Embedded Cheerleader
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: 6,660
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by torchjectory View Post
keygen. got it. or, rather i will look for it.
actually, i'm not sure.
is this a keygen on the mac or the paperwhite?
ON THE CLIENT !
At this moment in the conversation, that would be your Mac.

Just open a "Terminal" instance, commands are the same, since both Linux and MacOSx use the BSD software (which is installed by default on both OSs).

And the "overly commented" post -
That is so you can cut & paste the commands -
Know what to expect when it works and when it does not work -
And can read why.
All without thinking or prior knowledge.

But what you want is called: "Public key authentication" (no username/password prompt).

In fact, if using the USBnetworking package from this site -
It presumes that you will be using pub-key when access over Wifi (and it will also accept the same over USB).

Knowing how to set up short-cuts and nick-names is just another user convenience item.
knc1 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
Kindle Paperwhite SSH kevin67 Kindle Developer's Corner 13 03-15-2014 10:13 PM
SSH Kindle Paperwhite kevin67 Amazon Kindle 2 02-16-2013 11:57 AM
K5 Paperwhite: ssh page turn? sticker Kindle Developer's Corner 10 12-10-2012 07:30 PM
Help: OS X + SSH + Paperwhite Ecaz Kindle Developer's Corner 4 11-01-2012 09:17 PM
SSH keys with dropbear? enn Kindle Developer's Corner 2 10-07-2010 12:54 AM


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


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