View Single Post
Old 05-11-2020, 06:42 PM   #3844
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
Perhaps a dumb question, but if I ever blew away my ssh keys (I have the latest usbnetwork installed on my paperwhite 4, and it set up to use openssh), and needed to log in via password, what would the root password be for my device?

I have set this up so long ago I forgot how I did it. I checked out https://www.sven.de/kindle/?# which has some options but none of those worked.

Update; I was able to extract the kindle password via kindletool; but when I tried ssh'ing with those values; no dice:

Root PW fionad96
Recovery PW fionad962

Code:
[I]  ✘  ~/d/k/USBNetwork  ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no root@192.168.1.106 -v
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /home/david/.ssh/config
debug1: /home/david/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.106 [192.168.1.106] port 22.
debug1: Connection established.
debug1: identity file /home/david/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/david/.ssh/id_ed25519 type 3
debug1: key_load_public: No such file or directory
debug1: identity file /home/david/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2
debug1: match: OpenSSH_8.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.1.106:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EnyqIeMglLeBP7sOKfWtHidGBlYL5I6wMy8/6++nbpk
debug1: Host '192.168.1.106' is known and matches the ECDSA host key.
debug1: Found key in /home/david/.ssh/known_hosts:180
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: Connection refused
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
also related:
i normally use a different term variable for tmux and remote ssh purposes. (screen-256color or something). anyway to specify the term variable *only* for my kindle device in .ssh/config ? I tried adding " SendEnv term=xterm" which it didn't seem to work with

Code:
[I]  ~/.ssh  ssh kindle
#################################################
#  N O T I C E  *  N O T I C E  *  N O T I C E  #
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]# htop
Error opening terminal: screen-256color.
[root@kindle root]#

Last edited by arooni; 05-11-2020 at 07:31 PM.
arooni is offline   Reply With Quote