SFTP

Welcome to BestSync Support Forum!
If you have any questions, comments, concerns, suggestion, please summit here, we'll try to reply you in short time.
Thank you!
Post Reply
zeus1976
Posts: 7
Joined: Mon Sep 29, 2014 9:38 am

SFTP

Post by zeus1976 »

Hello Togehter

Since serveral days I have the follow error code, when I connect to my SFTP Server. Before it was working without problems.

My SFTP Server is a Synology NAS DS710+. I have tried to install the new version from Bestsync Ver9.0.6.2. Same Problem.

The error code is:
--BestSyncLog
Unable to connect to SFTP server.
Connect_SFtp:
hostname: 192.168.169.20
port: 22
ConnectTimeoutMs_1: 180000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
This is an IPV4 numeric address...
AddrInfoList:
AddrInfo:
ai_flags: 4
ai_family: 2
ai_socktype: 1
ai_protocol: 0
ai_addrlen: 16
ai_canonname: (NULL)
--AddrInfo
--AddrInfoList
Connect using IPV4.
ipAddress1: 192.168.169.20
myIP_3: 192.168.169.2
myPort_3: 50155
connect successful (2)
Established TCP/IP connection with SSH server
Turning on TCP_NODELAY.
clientIdentifier: SSH-2.0-PuTTY_Local:_May_11_2009_17:22:38
Sending client identifier...
Done sending client identifier.
Reading server version...
initialDataFromSshServer: SSH-2.0-OpenSSH_6.6p2-hpn14v4
serverVersion: SSH-2.0-OpenSSH_6.6p2-hpn14v4
KeyExchangeAlgs:
algorithm: curve25519-sha256@libssh.org
algorithm: ecdh-sha2-nistp256
algorithm: ecdh-sha2-nistp384
algorithm: ecdh-sha2-nistp521
algorithm: diffie-hellman-group-exchange-sha256
algorithm: diffie-hellman-group14-sha1
--KeyExchangeAlgs
HostKeyAlgs:
algorithm: ssh-rsa
algorithm: ssh-dss
algorithm: ecdsa-sha2-nistp256
--HostKeyAlgs
EncCS:
algorithm: aes128-ctr
algorithm: aes192-ctr
algorithm: aes256-ctr
algorithm: aes128-gcm@openssh.com
algorithm: aes256-gcm@openssh.com
algorithm: chacha20-poly1305@openssh.com
--EncCS
EncSC:
algorithm: aes128-ctr
algorithm: aes192-ctr
algorithm: aes256-ctr
algorithm: aes128-gcm@openssh.com
algorithm: aes256-gcm@openssh.com
algorithm: chacha20-poly1305@openssh.com
--EncSC
MacCS:
algorithm: umac-64-etm@openssh.com
algorithm: umac-128-etm@openssh.com
algorithm: hmac-sha2-256-etm@openssh.com
algorithm: hmac-sha2-512-etm@openssh.com
algorithm: hmac-sha1-etm@openssh.com
algorithm: umac-64@openssh.com
algorithm: umac-128@openssh.com
algorithm: hmac-sha2-256
algorithm: hmac-sha2-512
algorithm: hmac-sha1
--MacCS
MacSC:
algorithm: umac-64-etm@openssh.com
algorithm: umac-128-etm@openssh.com
algorithm: hmac-sha2-256-etm@openssh.com
algorithm: hmac-sha2-512-etm@openssh.com
algorithm: hmac-sha1-etm@openssh.com
algorithm: umac-64@openssh.com
algorithm: umac-128@openssh.com
algorithm: hmac-sha2-256
algorithm: hmac-sha2-512
algorithm: hmac-sha1
--MacSC
CompCS:
algorithm: none
algorithm: zlib@openssh.com
--CompCS
CompSC:
algorithm: none
algorithm: zlib@openssh.com
--CompSC
Unable to agree upon server-to-client encryption algorithm.
Unable to agree upon client-to-server encryption algorithm.
MAC: HMAC-SHA1
MAC: HMAC-SHA1
Compression: none
Compression: none
Key Exchange: DH Group Exchange SHA256
Host Key Algorithm: DSS
numBits: 128
pbits: 1024
Using GEX Group.
Sending KEX_DH_GEX_REQUEST...
pbits: 1024
numBytesRequested: 8
Connection closed by connected peer.
Failed to read data on SSH connection.
Failed to read KEX_DH_GEX_REQUEST response
Failed.
--Connect_SFtp
--ChilkatLog
Unable to connect to SFTP server.
Connect_SFtp:
hostname: 192.168.169.20
port: 22
ConnectTimeoutMs_1: 180000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
This is an IPV4 numeric address...
AddrInfoList:
AddrInfo:
ai_flags: 4
ai_family: 2
ai_socktype: 1
ai_protocol: 0
ai_addrlen: 16
ai_canonname: (NULL)
--AddrInfo
--AddrInfoList
Connect using IPV4.
ipAddress1: 192.168.169.20
myIP_3: 192.168.169.2
myPort_3: 50156
connect successful (2)
Established TCP/IP connection with SSH server
Turning on TCP_NODELAY.
clientIdentifier: SSH-2.0-PuTTY_Local:_May_11_2009_17:22:38
Sending client identifier...
Done sending client identifier.
Reading server version...
initialDataFromSshServer: SSH-2.0-OpenSSH_6.6p2-hpn14v4
serverVersion: SSH-2.0-OpenSSH_6.6p2-hpn14v4
KeyExchangeAlgs:
algorithm: curve25519-sha256@libssh.org
algorithm: ecdh-sha2-nistp256
algorithm: ecdh-sha2-nistp384
algorithm: ecdh-sha2-nistp521
algorithm: diffie-hellman-group-exchange-sha256
algorithm: diffie-hellman-group14-sha1
--KeyExchangeAlgs
HostKeyAlgs:
algorithm: ssh-rsa
algorithm: ssh-dss
algorithm: ecdsa-sha2-nistp256
--HostKeyAlgs
EncCS:
algorithm: aes128-ctr
algorithm: aes192-ctr
algorithm: aes256-ctr
algorithm: aes128-gcm@openssh.com
algorithm: aes256-gcm@openssh.com
algorithm: chacha20-poly1305@openssh.com
--EncCS
EncSC:
algorithm: aes128-ctr
algorithm: aes192-ctr
algorithm: aes256-ctr
algorithm: aes128-gcm@openssh.com
algorithm: aes256-gcm@openssh.com
algorithm: chacha20-poly1305@openssh.com
--EncSC
MacCS:
algorithm: umac-64-etm@openssh.com
algorithm: umac-128-etm@openssh.com
algorithm: hmac-sha2-256-etm@openssh.com
algorithm: hmac-sha2-512-etm@openssh.com
algorithm: hmac-sha1-etm@openssh.com
algorithm: umac-64@openssh.com
algorithm: umac-128@openssh.com
algorithm: hmac-sha2-256
algorithm: hmac-sha2-512
algorithm: hmac-sha1
--MacCS
MacSC:
algorithm: umac-64-etm@openssh.com
algorithm: umac-128-etm@openssh.com
algorithm: hmac-sha2-256-etm@openssh.com
algorithm: hmac-sha2-512-etm@openssh.com
algorithm: hmac-sha1-etm@openssh.com
algorithm: umac-64@openssh.com
algorithm: umac-128@openssh.com
algorithm: hmac-sha2-256
algorithm: hmac-sha2-512
algorithm: hmac-sha1
--MacSC
CompCS:
algorithm: none
algorithm: zlib@openssh.com
--CompCS
CompSC:
algorithm: none
algorithm: zlib@openssh.com
--CompSC
Unable to agree upon server-to-client encryption algorithm.
Unable to agree upon client-to-server encryption algorithm.
MAC: HMAC-SHA1
MAC: HMAC-SHA1
Compression: none
Compression: none
Key Exchange: DH Group Exchange SHA256
Host Key Algorithm: DSS
numBits: 128
pbits: 1024
Using GEX Group.
Sending KEX_DH_GEX_REQUEST...
pbits: 1024
numBytesRequested: 8
Connection closed by connected peer.
Failed to read data on SSH connection.
Failed to read KEX_DH_GEX_REQUEST response
Failed.
--Connect_SFtp
--ChilkatLog
Unable to connect to SFTP server.

Do you know this problem? Best regards
RiseFly
Site Admin
Posts: 1077
Joined: Tue Nov 03, 2009 2:51 pm

Re: SFTP

Post by RiseFly »

Please try the new BestSync 2015 (beta) to see if the problem can be resolved.
zeus1976
Posts: 7
Joined: Mon Sep 29, 2014 9:38 am

Re: SFTP

Post by zeus1976 »

Thank you for your answer. I have now installed the new version from BestSync 2015.

Now is working but I get another error message when I'm synchronizing. The error message is:
Fehler: Ungültiger verschlüsselter Datei Header

What does it mean this message? Why I get this message?

Thank you for your help.

Best regards
RiseFly
Site Admin
Posts: 1077
Joined: Tue Nov 03, 2009 2:51 pm

Re: SFTP

Post by RiseFly »

"Fehler: Ungültiger verschlüsselter Datei Header" means that you have not set the encryption direction correctly.
The task is trying to decrypt files of a non-crypted folder.
zeus1976
Posts: 7
Joined: Mon Sep 29, 2014 9:38 am

Re: SFTP

Post by zeus1976 »

RiseFly wrote:
> "Fehler: Ungültiger verschlüsselter Datei Header" means that you
> have not set the encryption direction correctly.
> The task is trying to decrypt files of a non-crypted folder.

That is strange :-) because I encrypt the file from site A to site B (per SMB-protocoll). Now I have only change the Transfermode from SMB to SFTP and since I changed I get this error message: "Ungültiger verschlüsselter Datei Header".

The encryption was not changed. So why should the file be decypted?

Thank you for your answer
RiseFly
Site Admin
Posts: 1077
Joined: Tue Nov 03, 2009 2:51 pm

Re: SFTP

Post by RiseFly »

Sorry to reply you late.
Is it possible that you copied normal files to the encryted side by accident?
RiseFly
Site Admin
Posts: 1077
Joined: Tue Nov 03, 2009 2:51 pm

Re: SFTP

Post by RiseFly »

We have used a new version of SFTP library, and the released version is BestSync 2015 (ver 10.0.2.0). Please try the new version to see if the problem can be resolved.
Post Reply