SFTP: fallback to password authentication fails

NetDrive can’t establish connection to SFTP server on local site, because SSH public key can’t extract from private key file. But SSH public key authentication isn’t in use so far and password authentication seems not to be used.

[2020/11/16 12:03:57.575] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] Trying x.x.x.x…
[2020/11/16 12:03:57.575] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] TCP_NODELAY set
[2020/11/16 12:03:57.575] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] Connected to sftp.domain.local (x.x.x.x) port 22 (#0)
[2020/11/16 12:03:57.715] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] SSH MD5 fingerprint:
[2020/11/16 12:03:57.731] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] SSH authentication methods available: publickey,password
[2020/11/16 12:03:57.731] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] Using SSH private key file ‘’
[2020/11/16 12:03:57.731] [MESSAGE ] [ 7036] [NETWORK ] [INFORMATION] SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private

We are using build 281.

Dear edv2,

Thank you for interesting in NetDrive.

Did you connect using DDNS(sftp.domain.local)?
If so, would you like to connect only by IP?

And are you only using ID and PASSWORD? Or are you also using SSH public key?

Regards.

Hi @tsjeong
Thanks for reply.
We don’t use DDNS in our configuration. I just post a pseudonymised hostname.
Publickey isn’t in use for authentication. ID and password is configured on SFTP serverside and for NetDrive SFTP-client.
But it seems like NetDrive didn’t find a keyfile and abort the connection instead of try to connect with ID and password.
Best regards.

Hello.

Are you using a private key file to log in sftp server?

Then please set a private key file with pressing “BROWSE” button.

FYI, NetDrive dosen’t support putty format private key file. NetDrive supports only openssh format.

Regards.

Hi @jyyoon
As I already wrote, we don’t use keyfiles for authentication in this part. But unfortunately NetDrive Client expect a keyfile. Authentication with ID and password only does’t work in the latest release. In my opinion this seeams to be a bug in code to me.

[2020/11/19 11:56:18.324] [MESSAGE ] [   21316] [NETWORK   ] [INFORMATION] SSH authentication methods available: publickey,password
[2020/11/19 11:56:18.324] [MESSAGE ] [   21316] [NETWORK   ] [INFORMATION] Using SSH private key file ''
[2020/11/19 11:56:18.324] [MESSAGE ] [   21316] [NETWORK   ] [INFORMATION] SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file

Hello.

The log contents you post are not enough.

Could you attach a whole log to figure out?

After setting the log level to VERBOSE, please reproduce the problem and send us the debug log file :

There is no login related credential information in the log files.

Regards.

Hi @jyyoon
We recently checked the configuration of our stftp-server and disabled publickey authentication explicitly. So we go on to check authentication with WinSCP.exe and successfullly connect to our hosted share. If we try to connect with NetDrive we run into connection error:
image

[2020/11/23 17:33:07.828] [ERROR   ] [   20516] [SERVICE   ] [ nd3 sdk version - child nd3svc : 3.13.281 ] [Child.cpp:129]
[2020/11/23 17:33:07.828] [DEBUG   ] [   20516] [SERVICE   ] StartChild:: connected to pipe \\.\pipe\nd_mount_8 [Child.cpp:302]
[2020/11/23 17:33:07.828] [DEBUG   ] [   20516] [SERVICE   ] StartChild:: created to client pipe of \\.\pipe\nd_mount_8 [Child.cpp:311]
[2020/11/23 17:33:07.828] [MESSAGE ] [   20516] [FILESYSTEM] FS_Initialize
[2020/11/23 17:33:07.828] [DEBUG   ] [   20516] [SERVICE   ] CChildPipe::request_info:: 25968 received response [ChildPipe.cpp:132]
[2020/11/23 17:33:07.828] [DEBUG   ] [   20516] [SERVICE   ] StartCache:: LinkZuLKN[4] [Child.cpp:151]
[2020/11/23 17:33:07.844] [DEBUG   ] [   20516] [SERVICE   ]  CACHE PATH : C:\ProgramData\NetDrive3\_cache_\user\LinkZuLKN [Child.cpp:164]
[2020/11/23 17:33:07.844] [DEBUG   ] [   20516] [SERVICE   ]  CACHE PATH : C:\ProgramData\NetDrive3\_cache_\user\LinkZuLKN [Child.cpp:168]
[2020/11/23 17:33:07.844] [DEBUG   ] [   20516] [CACHE     ]  Cache path C:\ProgramData\NetDrive3\_cache_\user\LinkZuLKN\, 207.017.418.752 bytes left
[2020/11/23 17:33:07.844] [MESSAGE ] [   20516] [CACHE     ] Cache initialized : C:\ProgramData\NetDrive3\_cache_\user\LinkZuLKN, Storage limit : 4.294.967.296 bytes
[2020/11/23 17:33:07.844] [DEBUG   ] [   20516] [CACHE     ] Cache configuration : 3, 1048576, 268435456, 60000, 536870912, 30000, 60, 3600, 30, 60
[2020/11/23 17:33:07.844] [DEBUG   ] [   20048] [CACHE     ] Cache quota manager started
[2020/11/23 17:33:08.031] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION]   Trying x.x.x.x...
[2020/11/23 17:33:08.031] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] TCP_NODELAY set
[2020/11/23 17:33:08.031] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] Connected to sftp.domain.local (x.x.x.x) port 22 (#0)
[2020/11/23 17:33:08.063] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] SSH MD5 fingerprint: 130b70527544fdfa6b83cc16346f7f5e
[2020/11/23 17:33:08.078] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] SSH authentication methods available: password
[2020/11/23 17:33:18.032] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] Operation timed out after 10010 milliseconds with 0 out of 0 bytes received
[2020/11/23 17:33:18.032] [MESSAGE ] [   20516] [NETWORK   ] [INFORMATION] Closing connection 0
[2020/11/23 17:33:18.032] [MESSAGE ] [   20516] [CACHE     ] Uninitialize cache...
[2020/11/23 17:33:18.157] [DEBUG   ] [   20048] [CACHE     ] Cache quota manager stopped
[2020/11/23 17:33:18.157] [MESSAGE ] [   20516] [CACHE     ] Cache uninitialized

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.