12-26-2011, 06:10 PM | #16 | |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
As to whether the files are binary compatible, I don't know but I hope so. It's strange that poterm won't work for you either. Did you get a recent version? Check out the rsh application for getting shell access if this doesn't work. It doesn't require anything but a shell script, and should work as long as nc is available on the 912. Look in the sticky section of the forum for paola's collection of links for the Pro series of devices. I hope you can get this going. I've been doing some development recently for my 902, and scp has been so much better than using the USB cable for uploading new app versions and test books. |
|
12-27-2011, 09:09 AM | #17 |
Zealot
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
|
Thank you rKomar for the answer,
after my post I managed to get the rsh connection to the device working. However: the server is running - and therefore binary compatible. When I will succeed - and I will - I'll post it here. Greets. |
Advert | |
|
12-27-2011, 09:39 AM | #18 |
Zealot
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
|
Now I got things working for the first time (to be updated) under Ubuntu 11.10. So this works with the PB 912 Pro.
Every information was contained in the README.txt of rKomars app. But my first approach was to copy the content of the keys into the authorized_keys2 file. That did not work. Probably I made a mistake somewhere ... 1. Edit the rsh-app and add the corresponding IP of your PC. 2. Copy the rsh-app you edited (filled in the IP from your PC) and the sshd-app to the applications directory of the pocketbook 3. Unmount Pocketbook 4. Start a terminal on your PC and start Code:
nc -l 9999 6. On the terminal at PC: Code:
cd /mnt/ext1/applications/pb_sshd ./make-keys.sh exit 8. Move (not copy !!!) the id_rsa and id_rsa.pub from the directory pb_sshd to your ~/.ssh/-directory on the PC. This is not that good, because it could overwrite your local rsa-keys. But this is no problem, because you should normally use the more secure dsa-keys for all other connections, which are name id_dsa and id_dsa_pub 9. Unmount Pocketbook 10. Alter the permissions of the private key on your PC(!): Code:
chmod 600 ~/.ssh/id_rsa 11. Connect from the PC-terminal with: Code:
ssh -p 1124 reader@IP_OF_POCKETBOOK "sh" Thats a quick solution. I'll post, when I will make more efforts enhancing this Thanks rKomar for the app. This enabled me to create a shortcut for the nautilus file-manager (should work on all unix-systems) - see attachment. On windows you could use Win-SCP. To be able to use "pocketbook" for the client name, you have to add a line in your "/etc/hosts" (for windows, this is the lmhosts-file, somewhere under the c:\windows\system\...\etc-directory ): Code:
IP_OF_YOUR_POCKETBOOK pocketbook I tested with Bart-Stuff (under Wine). You can easily access mounted filesystems under Gnome - either within the filemanager nautilus or you create a symbolic link to the hidden directory ~/.gvfs: Code:
ln -s .gvfs GVFS Write: 426 KB/s Read: 708 KB/s Tested with a PocketBook 912 Pro, Lenovo T61 g-Wifi-Card (54 Mbit/s), and a Cisco N-Router This is much much more than with bluetooth! Further troubleshooting: You can start the connection to the pocketbook e.g. with: Code:
ssh -vv -i ~/.ssh/id_rsa -p 1124 reader@pocketbook "sh" Greets Axel Last edited by apos; 05-15-2016 at 03:25 PM. |
12-27-2011, 10:42 AM | #19 |
Zealot
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
|
@rKomar
It might be handy - especially for people with no shell skills - to automatically run the make-keys.sh skript in the sshd_start.app! So they are able to move the resulting key-files without "shell-trouble" to their ~/.ssh-folder. Code:
[...] ./server-keygen.sh ./make-keys.sh [...] Code:
[...] ./server-keygen.sh [ -f create-keys ] && ./make-keys.sh rm -f create-keys [...] Axel Last edited by apos; 12-27-2011 at 11:08 AM. |
12-27-2011, 03:45 PM | #20 |
Zealot
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
|
With 912 Pro functional PoTerm Version found (at the bottom of the site). Unfortunately no luck with getting root access.
|
Advert | |
|
12-27-2011, 04:16 PM | #21 | |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
Edit: I updated the uploaded files in the first message in this thread to include this feature. Last edited by rkomar; 12-28-2011 at 01:01 AM. |
|
12-27-2011, 04:19 PM | #22 | |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
12-28-2011, 09:37 AM | #23 | |
Zealot
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
|
Quote:
... and a personal greeting: greets to Vancouver, visited this city some years ago and also hiked around Vancouver Island. It's one of my favourite lovely places out there - beside my own city, certainly Last edited by apos; 12-28-2011 at 09:42 AM. |
|
12-28-2011, 09:02 PM | #24 | |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
The root exploit in the older firmwares takes advantage of an obvious security hole; the netagent program was owned by root and had the suid bits set. Easy-peasy to use, and I guess also easy to fix in later firmware versions. And greetings to you. I've never been to the island myself, but as you said, it's pretty nice around Vancouver, as well. I've also never been to Europe, so I'll take your word for it that your city is nicer. I'm sure that it is drier. |
|
01-20-2012, 02:23 PM | #25 |
Enthusiast
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
|
For people using windows, this tool becomes even more handy with filezilla ftp client.
After getting the pair of keys, one can import the private key to the software. And then, one just need to type ftp address, port and user name "reader". From now on, you can enjoy all the convenience. Now I like this even more than komar's recent file downloader because I need to update files to read every now and then. |
01-20-2012, 04:11 PM | #26 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
abijah, if you gave me step by step instructions, I'll be forever grateful, as so far I've not been able to make it work (I've created the keys with Putty, but I cannot connect my laptop to the device remotely)
|
01-20-2012, 06:39 PM | #27 | |
Enthusiast
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
|
Quote:
1).follow komar's instruction on how to get keys on your device:[If you don't have "poterm", connect the reader up via USB and create a file called "create-keys" in the "pb_sshd" directory. It doesn't matter what it contains. The next time "sshd_start.app" is run, it will automatically run the "pb_sshd/make-keys.sh" script (and then delete the "create-keys" file). Then you can move the "id_rsa" and "id_rsa.pub" files from "pb_sshd" to your computer.] 2).open your Filezilla, then in the 'settings', select 'connection' and then 'sftp'. On the selected page, you can add "id_rsa" to filezilla. 3).open the 'site manager' of filezilla, create a new site. there you type host and port, choose sftp as the protocol, select normal as logon type and the user name is 'reader'. 4). run "sshd_start" on your device and then click 'connect' of filezilla. As a matter of fact, once you add the private key to filezilla, the rest is not very different from connecting a ftp site. I wish I could upload a picture, so I don't need to explain anything at all. Last edited by abijah; 01-20-2012 at 06:44 PM. |
|
01-22-2012, 01:53 PM | #28 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
thank you very much - I will try and report back!
|
04-19-2012, 06:43 AM | #29 |
Member
Posts: 22
Karma: 10
Join Date: Apr 2012
Device: PB 611
|
Hi Thanks rkomar and all,
I can now scp file to PB or scp file back to PC, but I cannot ssh login PB? Messege is: Connection to 192.168.1.100 closed by remote host. Connection to 192.168.1.100 closed. What's the problem? ---------------- PB611 + cygwin/win7 |
04-19-2012, 08:50 AM | #30 |
Wizard
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I'm not sure what the problem is. There is a log file in the pbsshd directory that may have more detailed information in it. You can also edit the startup app (it's a text shell script) and change the line near the end of the file that starts sshd so that it runs in debug mode. I believe I left a comment there describing how to do that. That will produce much more verbose output to the log file and it should be easier to figure out what the problem is. The problem with running in debug mode is that the daemon doesn't run in the background, so it doesn't return control to the application tab. It also stops running as soon as the first connection ends. So, that's why it isn't used by default.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Root / Shell / Term / SSH / editor on a Kindle 2? | JDShaffer | Kindle Developer's Corner | 2 | 12-13-2010 06:11 PM |
Can't get shell access | MarkRPenn | iRex | 11 | 10-26-2007 06:58 PM |
Shell Access ? | grayfox | iRex | 6 | 10-14-2007 04:56 PM |
FTP access open to new developers | Alexander Turcic | Announcements | 2 | 05-05-2007 11:02 AM |