|
|
Thread Tools | Search this Thread |
07-15-2022, 06:53 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kindle Touch
|
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. |
07-15-2022, 11:43 PM | #2 |
Grand Sorcerer
Posts: 5,530
Karma: 100606001
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 |
Advert | |
|
07-16-2022, 06:33 AM | #3 |
rm -rf /
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 Code:
Host kindle User root Hostname 192.168.15.244 IdentityFile $KEY_PATH KexAlgorithms +diffie-hellman-group1-sha1 StrictHostKeyChecking no |
07-16-2022, 06:54 PM | #4 |
Junior Member
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 06:57 PM. |
Tags |
ssh, usbnetwork |
|
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 11:10 PM |
Kindle touch 5.1.0 SSH password | Oneill | Kindle Developer's Corner | 19 | 01-12-2018 05:27 PM |
M92: password and users (eg. ssh/ssh-server) | lepau | Onyx Boox | 1 | 11-15-2013 12:46 PM |
how to get auth keys for ssh via os x onto paperwhite | torchjectory | Kindle Developer's Corner | 9 | 02-26-2013 09:58 AM |
SSH keys with dropbear? | enn | Kindle Developer's Corner | 2 | 10-07-2010 01:54 AM |