Hello,
I had an Raspberry Pi running with Samba on it and I used FullSync to sync my files from my PC to my Raspberry Pi, which worked well. Now I switched to a Banana Pi with Bananian (still Debian based) and installed samba with the same config. Everything is working execpt the syncing with FullSync. I always get this error:
net.sourceforge.fullsync.FileSystemException: Nested exception: Could not connect to SFTP server at "sftp://192.168.1.36/". nested exception: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://192.168.1.36/". at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:107) at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103) at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81) at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:65) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621) at net.sourceforge.fullsync.fs.connection.CommonsVfsConnection.<init>(CommonsVfsConnection.java:51) at net.sourceforge.fullsync.fs.filesystems.SFTPFileSystem.createConnection(SFTPFileSystem.java:100) at net.sourceforge.fullsync.FileSystemManager.createConnection(FileSystemManager.java:78) at net.sourceforge.fullsync.impl.AbstractTaskGenerator.execute(AbstractTaskGenerator.java:131) at net.sourceforge.fullsync.Synchronizer.executeProfile(Synchronizer.java:65) at net.sourceforge.fullsync.ui.MainWindow.doRunProfile(MainWindow.java:631) at net.sourceforge.fullsync.ui.MainWindow.access$400(MainWindow.java:56) at net.sourceforge.fullsync.ui.MainWindow$28.run(MainWindow.java:607) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "192.168.1.36". at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:230) at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:96) ... 14 more Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail at com.jcraft.jsch.Session.receive_kexinit(Session.java:532) at com.jcraft.jsch.Session.connect(Session.java:295) at com.jcraft.jsch.Session.connect(Session.java:158) at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:226) ... 15 more net.sourceforge.fullsync.FileSystemException: Nested exception: Could not connect to SFTP server at "sftp://192.168.1.36/". at net.sourceforge.fullsync.fs.connection.CommonsVfsConnection.<init>(CommonsVfsConnection.java:55) at net.sourceforge.fullsync.fs.filesystems.SFTPFileSystem.createConnection(SFTPFileSystem.java:100) at net.sourceforge.fullsync.FileSystemManager.createConnection(FileSystemManager.java:78) at net.sourceforge.fullsync.impl.AbstractTaskGenerator.execute(AbstractTaskGenerator.java:131) at net.sourceforge.fullsync.Synchronizer.executeProfile(Synchronizer.java:65) at net.sourceforge.fullsync.ui.MainWindow.doRunProfile(MainWindow.java:631) at net.sourceforge.fullsync.ui.MainWindow.access$400(MainWindow.java:56) at net.sourceforge.fullsync.ui.MainWindow$28.run(MainWindow.java:607) at java.lang.Thread.run(Unknown Source)
Thank you for your help!
Edit: I'm using FullSync V0.10.2 on Windows.
Since you are using SFTP your samba config is not relevant here, your SSHD config is.
The real error is: com.jcraft.jsch.JSchException: Algorithm negotiation fail.
Please provide the fullsync.log from C:\Users\<your user name>.config\fullsync.
Br,
Christoph
Thanks for the fast answer. Here is the fullsync file: http://pastebin.com/Taq5HcL0
hmm you probably need to install the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" for your java version:
Java 8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Java 7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
to install you need to copy the jar files from the zip file into your java installation (something like C:\Program Files (x86)\Java\jre7\lib\security\ )
AFTER EVERY JAVA UPDATE (thank you USA -.-')
then FullSync should be able to connect to your SFTP server
HTH
Christoph
Thank you! I copied the files from the zip archive to my java installation, overwrote the already existing files. But somehow it doesn't fix the problem :(
Please attah a copy of the sshd config file form /etc/ssh/sshd_config form your Banana Pi.
Also it would be interesting which Java version and which Windows version you are using so that I can try on the correct versions.
That would allow me to debug the problem.
Br,
Christoph
I use Windows 7 Ultimate x64 with Java 8 Update 25. And here is my sshd_config http://pastebin.com/auAbda3h
btw, happy christmas :)
Last edit: Akitoyo 2014-12-24
you could add hmac-sha1 to the list of allowed MAC algorithms on the server side:
/etc/ssh/sshd_config:
MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1
Br,
Christoph
Connecting works now. But I notice a strange issue: I used root to connect to my Banana Pi and this works when I set the destination path to /, but I can't get out of the home directory (/root) then. My files are located under /storage/, when I set the destination path to /storage/music it creates a the folder under /root/storage/music
yes currently FullSync only supports accessing files and folders below the users home directory...
however you can add a symlink to the /storage folder which will then allow you to access the other folder.
example:
ln -s /storage storage
after that you will be able to access the storage folder using the path /storage from whichever user you set this up (that user will need to be able to read / write to /storage of course)
HTH,
Christoph
I see. Thank you for your help, everything is working now :)