Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 10-08-2015, 11:20 AM   #76
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,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
It's a good sign that netagent is in the same place and accepting the "connect" argument. I don't know how to get a list of valid options for the command. Running "strings /ebrmain/bin/netagent" gives an idea of what the program is capable of. It seems to be quite complicated.

Anyway, look in the /var/tmp directory. There are various temporary log files stored there, including netagent.log and wpa.log. Maybe you can get a hint of what's going on from those. You can also run the dmesg command right after running netagent to show all of the log messages written out by the kernel. Perhaps there's an error message somewhere among the other messages.
rkomar is offline   Reply With Quote
Old 10-09-2015, 11:45 PM   #77
komar
Junior Member
komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.komar is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 1
Karma: 34828
Join Date: Oct 2015
Device: PocketBook 626
rsync

Thank you for sshd
Everything work perfectly on my PocketBook 626.

I have big library, and like keep it in sync, and I prefer use rsync. It's much faster then scp/sftp for big library.
So I build it.

There is build instruction, and binary.

How to use it.
Code:
$ rsync -rve 'ssh -p 1124 -l sreader' <IP>:/mnt/ext1/library ~
I make alias for that:
Code:
$ alias pb-sync="rsync -rve 'ssh -p 2222 -l sreader' <IP>:/mnt/ext1/library ~"
I also build sh_ivtool also, becouse I did't find binary for by book.

I think it's good idea to put this to your achives
komar is offline   Reply With Quote
Advert
Old 10-27-2015, 04:33 AM   #78
aldoem
Junior Member
aldoem began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2015
Device: pocketbook rouch 2
I try to sync my pocketbook with rsync over ssh, to a ssh server, but i pbsshd_1.3_fwv5.zip don't have the ssh client inside. @rkomar could you post it. THX in advance Aldo
aldoem is offline   Reply With Quote
Old 10-27-2015, 01:27 PM   #79
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,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by aldoem View Post
I try to sync my pocketbook with rsync over ssh, to a ssh server, but i pbsshd_1.3_fwv5.zip don't have the ssh client inside. @rkomar could you post it. THX in advance Aldo
Hmm, I'm not sure how useful this would be. You don't really have a home directory on the device, so there will be trouble with the known_hosts file. Anyway, I've built the ssh and sftp binaries for firmware version 5 and attached them here. Try them out and let me know if you can use them. If so, I may add them to the zip files I distribute here.

I didn't include them before because I didn't foresee anyone trying to use the device as a ssh client. I expected that people would use it as @komar did, using the device as an sshd server, and pushing the communication from outside clients.
Attached Files
File Type: zip ssh-fwv5.zip (178.1 KB, 332 views)

Last edited by rkomar; 10-27-2015 at 01:43 PM.
rkomar is offline   Reply With Quote
Old 10-29-2015, 02:17 AM   #80
aldoem
Junior Member
aldoem began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2015
Device: pocketbook rouch 2
Sync from Server_IP to Pocketbook, triggered from Pocketbook via Utelnetd.
ssh and rsync program are in /mnt/ext1/system/bin/
need a ssh key: /mnt/ext1/applications/ssh_key in pocketbook
and in server_IP add the public key to ~/.ssh/authorized_keys file
command:
rsync -arce "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /mnt/ext1/applications/ssh_key" user@Server_IP:/Path_to_Library/ /mnt/ext1/Path_to_Library/ 2>/dev/null
build app in progress...
thanks @rkomar for your help.
aldoem is offline   Reply With Quote
Advert
Old 11-02-2015, 03:44 PM   #81
cherocee
Member
cherocee began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2014
Device: tablet, pocketbook touch lux 2 (626)
strings /ebrmain/bin/netagent - not found

Sorry for the extremely late reply. My job kept me terrible busy for the last weeks.

In pbterm I did run
strings /ebrmain/bin/netagent
and received 3 or 4 pages of output.I piped this into /mnt/ext2/test.log.txt. I do not understand this file. Sorry. I have attached the .log.txt file to this post.

Quote:
Originally Posted by rkomar View Post

Anyway, look in the /var/tmp directory. There are various temporary log files stored there, including netagent.log and wpa.log.
I could only find the netagent.log. I was unable to find the wpa .log.
Since I did not understand the netagent.log, I am attaching it to this post as netagent.log.txt (My browser refused to upload a file with the extension .log?)
Attached Files
File Type: txt netagent.log.txt (813 Bytes, 386 views)
File Type: txt test.log.txt (22.5 KB, 581 views)

Last edited by cherocee; 11-02-2015 at 04:25 PM.
cherocee is offline   Reply With Quote
Old 11-02-2015, 04:33 PM   #82
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,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
You don't have to send the strings output for netagent; I can do that on my own device.

Do you get the menu to choose which WiFi access point to connect to when you run netagent?

To see if you are connected to the network, run "ifconfig" in pbterm after running netagent. If you are a connected, you will see an entry for the "eth0" interface with the IP address given. If you aren't connected, nothing will be printed out.
rkomar is offline   Reply With Quote
Old 11-02-2015, 05:43 PM   #83
cherocee
Member
cherocee began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2014
Device: tablet, pocketbook touch lux 2 (626)
I am not sure if I understood your reply correctly.

In pbterm I ran:
/ebrmain/bin/netagent connect
and received

netagent called with parameters <connect>

I did not obtain any menu to choose which WiFi access point. But I do not obtain this when connecting with the WiFi connect button either. I obtain this menu only when I forget to switch the WiFi on.

I ran in pbterm ifconfig
and did not obtain any output - I think I am not connected after using above command to start the netagent in pbterm.

To be on the safe side I did manually connect via the WIFI button
and ran (after seeing the WIFI icon in the upper right corner) ifconfig again. Output:
eth0 Link encap:Ethernet HWaddr AC:A2:13:9F:19:5E
inet addr:192.168.1.116 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:560 errors:0 dropped:37 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53049 (51.8 KiB) TX bytes:22830 (22.2 KiB)

So I think the netagent connect command does not seem to connect me to the WiFi.

Last edited by cherocee; 11-02-2015 at 05:52 PM.
cherocee is offline   Reply With Quote
Old 11-02-2015, 06:23 PM   #84
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,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
I don't have any WiFi button in the notification panel on my older devices, so it looks like that has changed in recent firmware versions. It sounds like you're going to have to enable the WiFi by hand first before starting the sshd application.
rkomar is offline   Reply With Quote
Old 11-03-2015, 08:47 AM   #85
cherocee
Member
cherocee began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2014
Device: tablet, pocketbook touch lux 2 (626)
thanks for your efforts

I will start the WiFi manually and than the sshd application. Very glad about this option.
cherocee is offline   Reply With Quote
Old 12-21-2016, 05:16 AM   #86
raev
Junior Member
raev began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2016
Device: PocketBook Basic Touch 2 - PB625
Rob, thank you for this very helpful application!

I can confirm it works on the new PB 625. It comes with FW 4.4, so I used the pbsshd_1.3_fwv5.zip archive and the "sreader" user.

SFTP works like a charm.

There is some issue with connecting the SSH terminal. I don't really need it right now, but just to let you know:

Code:
$ ssh -p 1124 sreader@192.168.1.162
Connection to 192.168.1.162 closed by remote host.
Connection to 192.168.1.162 closed.
raev is offline   Reply With Quote
Old 12-21-2016, 10:57 AM   #87
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,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Try adding the "-T" option to your ssh command. I don't think that recent firmwares allow the opening of pseudo-terminals.
rkomar is offline   Reply With Quote
Old 12-23-2016, 02:53 PM   #88
raev
Junior Member
raev began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2016
Device: PocketBook Basic Touch 2 - PB625
Yes. It works with the -T options. Thank you!
raev is offline   Reply With Quote
Old 06-11-2017, 10:41 AM   #89
Peter16
Junior Member
Peter16 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2011
Device: Pocketbook Touch HD
Problem with Touch HD (PB631)

Hi,
I can not get working pbsshd_1.3_fwv5.zip on a Pocketbook Touch HD Modell 631 with Software: U631.5.16.479 from 20170309_134205

I created with file 'create-keys' a new key pair, copied to computer (win10) and converted the private to a ppk with puttykeygen. But with putty and WinSCP I get an error: bad service request ssh-connection
I activated in sshd_start the debug log, which is below.
Can someone help?
Thanks,
Peter
Code:
debug1: sshd version OpenSSH_5.9p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: read PEM private key done: type RSA
debug1: private host key: #3 type 1 RSA
debug1: setgroups() failed: Operation not permitted
debug1: rexec_argv[0]='/mnt/ext1/applications/pb_sshd/usr/sbin/sshd'
debug1: rexec_argv[1]='-f'
debug1: rexec_argv[2]='/mnt/ext1/applications/pb_sshd/etc/ssh/sshd_config'
debug1: rexec_argv[3]='-h'
debug1: rexec_argv[4]='/mnt/ext1/applications/pb_sshd/etc/ssh/ssh_host_key'
debug1: rexec_argv[5]='-h'
debug1: rexec_argv[6]='/mnt/ext1/applications/pb_sshd/etc/ssh/ssh_host_dsa_key'
debug1: rexec_argv[7]='-h'
debug1: rexec_argv[8]='/mnt/ext1/applications/pb_sshd/etc/ssh/ssh_host_ecdsa_key'
debug1: rexec_argv[9]='-h'
debug1: rexec_argv[10]='/mnt/ext1/applications/pb_sshd/etc/ssh/ssh_host_rsa_key'
debug1: rexec_argv[11]='-d'
debug1: rexec_argv[12]='-e'
Set /proc/self/oom_score_adj from -1000 to -1000
socket: Address family not supported by protocol
debug1: Bind to port 1124 on 0.0.0.0.
Server listening on 0.0.0.0 port 1124.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
debug1: sshd version OpenSSH_5.9p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: read PEM private key done: type RSA
debug1: private host key: #3 type 1 RSA
debug1: setgroups() failed: Operation not permitted
debug1: inetd sockets after dupping: 3, 3
Connection from 192.168.121.25 port 2080
debug1: Client protocol version 2.0; client software version PuTTY_Release_0.65
debug1: no match: PuTTY_Release_0.65
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: list_hostkey_types: ssh-dss,ecdsa-sha2-nistp256,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes256-ctr hmac-sha2-256 none
debug1: kex: server->client aes256-ctr hmac-sha2-256 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
WARNING: /usr/local/etc/moduli does not exist, using fixed modulus
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: bad service request ssh-connection
Disconnecting: bad service request ssh-connection
debug1: do_cleanup
Peter16 is offline   Reply With Quote
Old 06-28-2017, 07:48 PM   #90
xl743
Member
xl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beauty
 
xl743's Avatar
 
Posts: 19
Karma: 32720
Join Date: Apr 2015
Device: Kindle Oasis, Pocketbook 840-2
Has anyone tried this for PB 840 InkPad 2 with firmware 5.15? I used instructions for #27 and tried this with PuTTY and Filezilla but it didn't work. PuTTY window closes immediately with log:

Code:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.06.29 02:02:14 =~=~=~=~=~=~=~=~=~=~=~=
login as: sreader
Authenticating with public key "imported-openssh-key"
I tried all the recommendations from above with keys and even tried to emulate ssh -T option with PuTTY "Don't allocate a pseudo-terminal".

Filezilla says "unexpected end-of-line symbol" after keys exchange.

Any help please?
xl743 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:52 AM.


MobileRead.com is a privately owned, operated and funded community.