01-27-2019, 09:12 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
Kindle PW3 5.9.6.1 ssh broken pipe leaves broken ssh
Hi I have jailbroken my kindle pw 3 on 5.9.6.1 and set it up with usb network extension
after successful connection, i started exploring and delete some files by "cat"ing them that are left by Calibre and other tools years ago. But after using cat on some really big files, and possibly contains other than ascii characters, my terminal prompt says "broken pipe" then disconnected from my kindle. Ever since then each time I try to connect to my kindle I will see the banner but a blank terminal that cannot be ctrl-c or ctrl-d ctrl-z completely unresponsive I have tried upgrading from 5.9.4 to 5.9.6.1 and reinstalling by flagging complete image: https://imgur.com/a/bxZXidu ssh-log: https://pastebin.com/f2XgJtEY Any form of help is appreciated at this point. |
01-27-2019, 10:00 AM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
If you know that there is a possibility of non-ascii characters, then why use cat?
Isn't that like aiming at your foot and pulling the trigger to see if the gun is loaded? I.E: Not your best idea of all time. Have you tried to telnet in and re-start the shell that you have cat'd to death? PS: You have your cause and effect reversed: "Broken ssh gives a broken pipe" is the order, although that might not be what you have seen at the remote end. Last edited by knc1; 01-27-2019 at 10:03 AM. |
01-27-2019, 10:33 AM | #3 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
¯\_(:<)_/¯ well i had no idea that the file would be that huge and non-ascii or probably some kind of binary file.
shell that's dead immediately disconnected, and telnet just hangs: telnet 192.168.0.43 Trying 192.168.0.43... (blinking-cursor) |
01-27-2019, 10:46 AM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
reboot the Kindle.
Then try move (mv) or copy (cp) rather than cat. Depending on what you want to get done, rsync over ssh might be a better choice. Last edited by knc1; 01-27-2019 at 10:49 AM. |
01-27-2019, 10:48 AM | #5 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
Thanks for the reply but I have rebooted several times, and upgraded the firmware and even reinstall completely, and this doesn't quite work.
|
01-27-2019, 10:55 AM | #6 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
You have over-written something vital. Which is reasonable in this case. Since you don't know how to move the content of a file from place to place, it is not surprising that you also do not know what damage you can do by your own choices. |
|
01-27-2019, 11:04 AM | #7 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
it s just the ssh its broken, everything else works from kindlet and viewing book and etc.
And only what i done is catting file in /mnt/us directory and rm them if its a year old and if the file is named like calibre_metadata or such |
01-27-2019, 11:21 AM | #8 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
alright problem sovled, i am able to ssh into kindle from my phone using a ssh client but somehow not my computer. So I can feel better now from the fear of being someone incompetent.
Thank you anyway, because your other comment on the other post lead me to another post which just points up the convenience of ssh, so I thought of that I had to try some other way, otherwise I would be so doomed by pulling files with: plug kindle mount cp umount && eject |
01-27-2019, 11:23 AM | #9 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2019
Device: kindle pw3
|
● sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; vendor preset: disabled) Active: inactive (dead) its my ******* sshd service on my client is cat'd to death EDIT: nope im completely dumb and wrong, this has nothing to do with making ssh kindle work again. but restarting my laptop did Last edited by xception; 01-27-2019 at 11:31 AM. |
Tags |
ssh |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin error: IOError: [Errno 32] Broken pipe | stoduk | Development | 6 | 12-30-2015 08:14 AM |
Broken pipe issues | jasonfedelem | Library Management | 8 | 06-05-2015 08:34 AM |
another broken pipe | bambuko | Calibre | 7 | 02-15-2015 10:19 AM |
M92: password and users (eg. ssh/ssh-server) | lepau | Onyx Boox | 1 | 11-15-2013 12:46 PM |
SSH access broken | yecam | OpenInkpot | 4 | 08-29-2009 06:42 PM |