10-08-2015, 11:20 AM | #76 |
Wizard
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. |
10-09-2015, 11:45 PM | #77 |
Junior Member
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 ~ Code:
$ alias pb-sync="rsync -rve 'ssh -p 2222 -l sreader' <IP>:/mnt/ext1/library ~" I think it's good idea to put this to your achives |
Advert | |
|
10-27-2015, 04:33 AM | #78 |
Junior Member
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
|
10-27-2015, 01:27 PM | #79 | |
Wizard
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:
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. Last edited by rkomar; 10-27-2015 at 01:43 PM. |
|
10-29-2015, 02:17 AM | #80 |
Junior Member
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. |
Advert | |
|
11-02-2015, 03:44 PM | #81 | |
Member
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:
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?) Last edited by cherocee; 11-02-2015 at 04:25 PM. |
|
11-02-2015, 04:33 PM | #82 |
Wizard
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. |
11-02-2015, 05:43 PM | #83 |
Member
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. |
11-02-2015, 06:23 PM | #84 |
Wizard
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.
|
11-03-2015, 08:47 AM | #85 |
Member
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.
|
12-21-2016, 05:16 AM | #86 |
Junior Member
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. |
12-21-2016, 10:57 AM | #87 |
Wizard
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.
|
12-23-2016, 02:53 PM | #88 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2016
Device: PocketBook Basic Touch 2 - PB625
|
Yes. It works with the -T options. Thank you!
|
06-11-2017, 10:41 AM | #89 |
Junior Member
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 |
06-28-2017, 07:48 PM | #90 |
Member
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" Filezilla says "unexpected end-of-line symbol" after keys exchange. Any help please? |
|
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 |