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 07-15-2022, 05:53 PM   #1
Immortalis
Junior Member
Immortalis began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kindle Touch
Question Unable to get ssh-keys working for ssh login without entering password

I'm having trouble accessing root without password using ssh-keys.

I have followed this guide: (https://www.mobileread.com/forums/sh...d.php?t=204942)

Been through the following steps (in reference to guide above),
1. Connected to root@192.168.15.244 (Confirmed kindle time to be set correct).
2. Setup alias (`ktouch`) in `/etc/hosts`.
3. On local machine created ssh-keys using ssh-keygen.
4. Ran `scp ktouch_id_rsa.pub root@ktouch:/mnt/us/usbnet/etc/authorized_keys` copy to kindle.
5. Ran `ssh -l root ktouch` but still asks for password when I try to connect.

I've attached how it looks with the .pub key copied over. Not sure what else could be helpful, but do let me know.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2022-07-15 at 23.42.19.png
Views:	112
Size:	93.0 KB
ID:	195024  
Immortalis is offline   Reply With Quote
Old 07-15-2022, 10:43 PM   #2
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Is the OS on your local machine unix-like?

If so, what is the output from
Code:
ls -al ~/.ssh
j.p.s is offline   Reply With Quote
Advert
Old 07-16-2022, 05:33 AM   #3
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
The name of your SSH key means that it won't be offered by default, you need to specify it when connecting:
Code:
ssh -i ${KEY_PATH} root@kindle
You can also add it to .ssh/config to avoid the need to do this every time:
Code:
Host kindle
  User root
  Hostname 192.168.15.244
  IdentityFile $KEY_PATH
  KexAlgorithms +diffie-hellman-group1-sha1
  StrictHostKeyChecking no
katadelos is offline   Reply With Quote
Old 07-16-2022, 05:54 PM   #4
Immortalis
Junior Member
Immortalis began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kindle Touch
Thank you so much!! Wow, it's been frustrating as hell. Long nights spend... Internet is amazing sometimes if you dare ask

As you wrote, pointing to the SSH key did the trick. I was ready to give up, now I can do my project!

Last edited by Immortalis; 07-16-2022 at 05:57 PM.
Immortalis is offline   Reply With Quote
Reply

Tags
ssh, usbnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K4 SSH over WiFi (Dropbear) keys stopped working after restart aleq Kindle Developer's Corner 10 06-27-2018 10:10 PM
Kindle touch 5.1.0 SSH password Oneill Kindle Developer's Corner 19 01-12-2018 04:27 PM
M92: password and users (eg. ssh/ssh-server) lepau Onyx Boox 1 11-15-2013 11:46 AM
how to get auth keys for ssh via os x onto paperwhite torchjectory Kindle Developer's Corner 9 02-26-2013 08:58 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:39 PM.


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