SFTP connection failed after updating server to Ubuntu 22.04

A properly working SFTP connection stops working after a server update to Ubuntu 22.04.
Other FTPS clients connect properly to the same server.
This is the VERBOSE log.

[2022/09/14 12:55:53.616] [ERROR ] [ 17256] [SERVICE ] [ nd3 sdk version - child nd3svc : 3.16.589 ] [Child.cpp:129]
[2022/09/14 12:55:53.616] [DEBUG ] [ 17256] [SERVICE ] StartChild:: connected to pipe \.\pipe\nd_mount_4 [Child.cpp:302]
[2022/09/14 12:55:53.616] [DEBUG ] [ 17256] [SERVICE ] StartChild:: created to client pipe of \.\pipe\nd_mount_4 [Child.cpp:311]
[2022/09/14 12:55:53.616] [MESSAGE ] [ 17256] [FILESYSTEM] FS_Initialize
[2022/09/14 12:55:53.616] [DEBUG ] [ 17256] [SERVICE ] CChildPipe::request_info:: 3948 received response [ChildPipe.cpp:136]
[2022/09/14 12:55:53.616] [DEBUG ] [ 17256] [SERVICE ] StartCache:: ECO - SRVDOCKER TEST[4] [Child.cpp:151]
[2022/09/14 12:55:53.663] [DEBUG ] [ 17256] [SERVICE ] CACHE PATH : C:\ProgramData\NetDrive3_cache_\prjweb2\ECO - SRVDOCKER TEST [Child.cpp:164]
[2022/09/14 12:55:53.663] [DEBUG ] [ 17256] [SERVICE ] CACHE PATH : C:\ProgramData\NetDrive3_cache_\prjweb2\ECO - SRVDOCKER TEST [Child.cpp:168]
[2022/09/14 12:55:53.663] [DEBUG ] [ 17256] [CACHE ] Cache path C:\ProgramData\NetDrive3_cache_\prjweb2\ECO - SRVDOCKER TEST, 380.668.739.584 bytes left
[2022/09/14 12:55:53.663] [MESSAGE ] [ 17256] [CACHE ] Cache initialized : C:\ProgramData\NetDrive3_cache_\prjweb2\ECO - SRVDOCKER TEST, Storage limit : 4.294.967.296 bytes
[2022/09/14 12:55:53.679] [DEBUG ] [ 17256] [CACHE ] Cache configuration : 3, 1048576, 268435456, 60000, 536870912, 30000, 60, 3600, 30, 60
[2022/09/14 12:55:53.679] [DEBUG ] [ 9660] [CACHE ] Cache quota manager started
[2022/09/14 12:55:53.832] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Trying 192.168.120.180…
[2022/09/14 12:55:53.832] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] TCP_NODELAY set
[2022/09/14 12:55:53.848] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Connected to 192.168.120.180 (192.168.120.180) port 22 (#0)
[2022/09/14 12:55:53.848] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Failure establishing ssh session: -5, Unable to exchange encryption keys
[2022/09/14 12:55:53.848] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Closing connection 0
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Hostname 192.168.120.180 was found in DNS cache
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Trying 192.168.120.180…
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] TCP_NODELAY set
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Connected to 192.168.120.180 (192.168.120.180) port 22 (#1)
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Failure establishing ssh session: -5, Unable to exchange encryption keys
[2022/09/14 12:55:53.864] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Closing connection 1
[2022/09/14 12:55:53.895] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Hostname 192.168.120.180 was found in DNS cache
[2022/09/14 12:55:53.895] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Trying 192.168.120.180…
[2022/09/14 12:55:53.895] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] TCP_NODELAY set
[2022/09/14 12:55:53.917] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Connected to 192.168.120.180 (192.168.120.180) port 22 (#2)
[2022/09/14 12:55:53.917] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Failure establishing ssh session: -5, Unable to exchange encryption keys
[2022/09/14 12:55:53.917] [MESSAGE ] [ 17256] [NETWORK ] [INFORMATION] Closing connection 2
[2022/09/14 12:55:53.933] [MESSAGE ] [ 17256] [CACHE ] Uninitialize cache…
[2022/09/14 12:55:53.995] [DEBUG ] [ 9660] [CACHE ] Cache quota manager stopped
[2022/09/14 12:55:53.995] [MESSAGE ] [ 17256] [CACHE ] Cache uninitialized

1 Like

Please add following line to your sshd_config file of your Ubuntu.

HostKeyAlgorithms ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-ed25519

It will add host key types which NetDrive uses.

Next versions of NetDrive will include cryptography algorithms for recent OpenSSH versions.

Thank you, it works. We will wait the update for unmanageble servers.

1 Like