*Edit*
A big thank you to @knc1 and @NiLuJe, who patiently walked me through diagnostic steps.
Solution: I updated my 5.6.5 kindle firmware post-jailbreak to (drum roll) 5.6.5. Turns out you can do that! It solved my weird #root password issues and verified that my jailbreak-bridge was successful (which I discovered by seeing 'bridge+' shortly after the update was complete, but before the PW3 rebooted). Finally:
After reading a multitude of threads with diverse (and often contradictory) recommendations, I finally went to the
Wiki* and discovered that there is, indeed, a #root password that might just work on my system. All of a sudden:
Code:
$ scp /home/hal/.ssh/hal9k_id_rsa.pub root@192.168.15.244:/mnt/us/usbnet/etc/authorized_keys
could work, because all I'd need to do is enter
mario as the password once. Now my systems know each other :-) And all is good with the world.
*
I need your help - I can't get USB networking to function for the life of me.
The problem - I am asked for an unknown root password (not blank) even with shared keys. I cannot telnet in (connection denied). I cannot scp (root password request again).
Code:
hal@BABUSHKA:~$ ssh -i ./.ssh/id_teddy root@169.254.40.36 -v
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 169.254.40.36 [169.254.40.36] port 22.
debug1: Connection established.
debug1: identity file ./.ssh/id_teddy type 1
debug1: identity file ./.ssh/id_teddy-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6
debug1: Remote protocol version 2.0, remote software version MS_1.100
debug1: no match: MS_1.100
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: [redacted]
debug1: Host '169.254.40.36' is known and matches the RSA host key.
debug1: Found key in /home/hal/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
debug1: Unspecified GSS failure. Minor code may provide more information
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
debug1: Next authentication method: password
root@169.254.40.36's password:
My Setup
Win10 box running bash for windows (Ubuntu-based Bash shell for Windows)
PW3 5.6.5, software jb, USBNet_0.21.N, KUAL+, MRinstaller, rescuepack, python, gawk, kterm, vim, coreutils, usbotgmouse, linkss, linkfonts, koreader installed
Default config of USBNet, defaults on everything else (more or less - kterm is a pain without a functioning evdev so I can type!) tried a number of steps to fix this, so any help you can offer would be greatly appreciated!
problem with the install
I've tried resetting the config file to default using KUAL. I've tried uninstalling (default) and then reinstalling using MRinstaller. I've tried full uninstall, followed by an actual restart of the kindle, and a subsequent install of usbnet.
problem with the keygen
I have made keys in both ssh-keygen in the bash shell (native unix/utf8) and putty keygen. I have verified that the public keys use utf8, unix EOL, openssh format and get copied to usbnet/etc/authorized_keys. I, of course, have only used a single keypair each time, not wanting to create another point of failure, deleting my known_hosts after each attempt (shouldn't impact things, but...)
root password business???
I haven't (knowingly) set a password, and I can #su without being asked for one. my /etc/shadow folder does show something different than the rest of the accounts "root:$1$dL<snip>q1:17029:0: ..." whereas everything but framework & guest are "blah:*:10933:0: ..."
I did have a lock on my device, but I removed it in case that was the holdup.
I have never used diags.
weird ip
So the kindle ip address has changed several times. I have no idea why, I am blaming windows - even though I thought this was set through the sshd config?
Unfortunately, MS screwed up the big update to Win10 and now there is a kernel panic from partmgr every time you plug in the kindle. Because, you know, fat is really difficult for microsoft to parse ;-) The only way to avoid this and actually transfer books/files to the Kindle is to boot or wake from sleep with the device plugged in.
There is, of course, no problem when it's in usbnet mode, and everything gets properly recognized as a gadget & an ip address is found. But it seems to be dynamic. So: Microsoft's fault.
telnet
Yeah, you got me. I can't telnet in. Connection is refused. No idea what's going on. I haven't changed anything in /etc, so I don't know why telnet would be refused. Yes, telnet works in all of its insecure glory on other devices, using bash, command prompt, and putty.
dmesg clue?
After unplugging, turing on UN, dmesg reports:
usb0 gets a mac address
g_ether gadget controller 'fsl-usb2-udc' not recognized; trying CDC Ethernet (ECM)
g_ether gadget . . . Memorial Day 2008
g_ether gadget: g_ether ready
*I've tried both a USB3 and a USB2 port, I think this is from the USB3. But I thought CDC Ethernet was what I wanted?
The ask
I'm flummoxed. Any suggestions you have would be greatly appreciated. I want to unlock the full power of my Kindle (so that I can vim on the go with an otg keyboard :cool:)