rwblinn Well-Known Member Licensed User Longtime User Mar 24, 2016 #1 Hi, when downloading via FTP a file from a local Raspberry Pi, follow error occurs: Code: Copy Download not completed. Error: org.apache.commons.net.MalformedServerReplyException: Could not parse response code. Server Reply: SSH-2.0-OpenSSH_6.7p1 Raspbian-5+deb8u1 SSH is active on the Raspberry Pi. Project file attached. Any hints how to resolve? Attachments remlogviewer.zip remlogviewer.zip 3.4 KB · Views: 428
Hi, when downloading via FTP a file from a local Raspberry Pi, follow error occurs: Code: Copy Download not completed. Error: org.apache.commons.net.MalformedServerReplyException: Could not parse response code. Server Reply: SSH-2.0-OpenSSH_6.7p1 Raspbian-5+deb8u1 SSH is active on the Raspberry Pi. Project file attached. Any hints how to resolve?
B billzhan Active Member Licensed User Longtime User Mar 24, 2016 #2 You may try jkSSH2 (B4A) lib has SCP upload/download features. It works with B4J Upvote 0
rwblinn Well-Known Member Licensed User Longtime User Mar 24, 2016 #3 Thanks for the hint. Tried but getting error when calling: Code: Copy SFTP.getFile(FTPRemoteFile, File.DirApp, 10) Code: Copy main._sftp_downloadstart (java line: 230) java.lang.NoClassDefFoundError: android/util/Log at b4a.jk.ssh.Ssh2Wrapper.connectIfNeeded(Ssh2Wrapper.java:496) Upvote 0
Thanks for the hint. Tried but getting error when calling: Code: Copy SFTP.getFile(FTPRemoteFile, File.DirApp, 10) Code: Copy main._sftp_downloadstart (java line: 230) java.lang.NoClassDefFoundError: android/util/Log at b4a.jk.ssh.Ssh2Wrapper.connectIfNeeded(Ssh2Wrapper.java:496)
B billzhan Active Member Licensed User Longtime User Mar 24, 2016 #4 I tested it with v2.8. Try: Code: Copy SSH2.DebugOutput = False Upvote 0
rwblinn Well-Known Member Licensed User Longtime User Mar 24, 2016 #5 Thanks for the hint - got it to work and also able to download several times. Will share the sample app next days or so (just completing the settings form). Upvote 0
Thanks for the hint - got it to work and also able to download several times. Will share the sample app next days or so (just completing the settings form).
rwblinn Well-Known Member Licensed User Longtime User Mar 25, 2016 #6 As promised find attached the sample app to read on a PC, remote openHAB log files (openhab.log and events.log). The log files are stored on a Raspberry Pi in a local network. SSH is used to transfer. The configuration settings are managed via two modal forms and data is stored in a file as a type by randomaccessfile. Two iconnized buttons are used to quickly refresh a log file. The source code is attached. The jKSSH2 library is not included. Attachments openhablogviewer.zip openhablogviewer.zip 11.3 KB · Views: 458 Upvote 0
As promised find attached the sample app to read on a PC, remote openHAB log files (openhab.log and events.log). The log files are stored on a Raspberry Pi in a local network. SSH is used to transfer. The configuration settings are managed via two modal forms and data is stored in a file as a type by randomaccessfile. Two iconnized buttons are used to quickly refresh a log file. The source code is attached. The jKSSH2 library is not included.