View Single Post
Old 12-03-2011, 05:10 PM   #1
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
ssh shell/ftp access for PocketBook Pro readers

I've put together a package for running a secure shell daemon on the PocketBook Pro readers without needing root privileges. This allows one to use scp, sftp and ssh from a computer to access the reader. Unfortunately, because the daemon runs under the non-root reader account, it can't use passwords for logging in. Instead, authorization keys have to be used instead of passwords. This isn't difficult to do, but does make the set-up a little harder than just copying the files over and clicking the start application. I've attached the zip file with the necessary programs and scripts, and also attached the README.txt file from inside the zip file so people can judge if they want to bother with this or not.

The ssh shell is pretty rudimentary because of problems with creating ptys from non-privileged accounts. If enough people want this, maybe we can convince PB to fix that within their firmware.

The ssh programs were built using LoneTech's qemu-based build system. They are for arm-eabi systems only, so won't work on the older 30X and 360 systems. However, the configuration options for building the openssh package are given in the README.txt file, and anyone with an older arm build system should be able to create programs for the readers using the older ABI.

Edit: The first time you run sshd_start, it takes a while to run because it is generating host keys for the system. Please be patient.

Edit 2: Re-uploaded new files that include the "create-keys" functionality suggested by @apos.

Edit 3: Added sreader account as allowed login name, and updated README.txt. Users of new firmware versions should use sreader as the login name rather than reader

Edit 4: Added pop up dialog stating the IP address and port.

Edit 5: Added a version for devices with firmware 5 (since they use new openssl libraries).

Edit 6: Added a version for devices with firmware 6. Log in as user "reader" on those devices.
Attached Files
File Type: txt README.txt (7.9 KB, 2438 views)
File Type: zip pbsshd_1.3.zip (336.8 KB, 1218 views)
File Type: zip pbsshd_1.3_fwv5.zip (298.8 KB, 1228 views)
File Type: zip pbsshd_1.3_fwv6.zip (1,005.0 KB, 495 views)

Last edited by rkomar; 12-28-2020 at 03:49 PM.
rkomar is offline   Reply With Quote