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 02-16-2024, 10:19 PM   #1
desertcroc
Junior Member
desertcroc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2024
Device: Kindle 4
Can't get SSH keys working for auth

I'm having trouble getting SSH keys working. I've followed all the instructions carefully and this is not my first rodeo with public-private SSH keys.
  • Running 4.1.4
  • Jailbreak worked properly
  • Successfully set the root password and using that for auth
  • Copied my existing public key from client ~/.ssh/id_rsa.pub
  • Tried copying to usbnet/etc/authorized_keys and authorized_keys2 (using USB drive mode)
  • Tried using scp to copy to /mnt/us/usbnet/etc/
  • Manually creating /etc/authorized_keys with vi
  • Tried using both dropbear and OpenSSH
  • Tried remounting as rw before doing many of the steps above
  • Tried using ssh -i option even though ~/.ssh/id_rsa private key file should be used by default

I did successfully connect over USBnet and Wifi using password auth.

Any help here would be much appreciated! Is there any way to easily turn on more logging to find the issue?
desertcroc is offline   Reply With Quote
Old 02-16-2024, 10:23 PM   #2
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,077
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
First, the key itself should be “plain”, i.e. written out as a long string with END in the end (or something like that). Also check that the file’s line endings are LF, not anything else.
mergen3107 is offline   Reply With Quote
Advert
Old 02-17-2024, 01:31 AM   #3
desertcroc
Junior Member
desertcroc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2024
Device: Kindle 4
The format I have is the following, all in a single line:
ssh-rsa ABCDE... user@hostname

I'm not sure if I've ever seen a public key file with "END" in it.
desertcroc is offline   Reply With Quote
Old 02-17-2024, 03:01 AM   #4
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,077
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
My point was that the Kindle file is plain, not encrypted like ppk or others.
mergen3107 is offline   Reply With Quote
Old 02-17-2024, 09:28 AM   #5
desertcroc
Junior Member
desertcroc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2024
Device: Kindle 4
I see. Yes, it's definitely a plain key.
desertcroc is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K5 Unable to get ssh-keys working for ssh login without entering password Immortalis Kindle Developer's Corner 3 07-16-2022 05:54 PM
K4 SSH over WiFi (Dropbear) keys stopped working after restart aleq Kindle Developer's Corner 10 06-27-2018 10:10 PM
how to get auth keys for ssh via os x onto paperwhite torchjectory Kindle Developer's Corner 9 02-26-2013 08:58 AM
Kindle 3's a and s keys not working offgrey Amazon Kindle 8 12-21-2011 04:45 AM
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 09:01 AM.


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