Topic "Server refused public-key signature despite accepting key!"

Author Message
Medg14200

Guest


Hi ,

I'm using the latest version of winSCP and OPENSSH as server : 5_30_2016 and OpenSSH-Win64.zip
The OS server is Windows 2012 R2.

I followed the guide step by step and did everything in the following link : https://winscp.net/eng/docs/guide_windows_openssh_server.

Nevertheless, I'm not sure for the following points :

- How to assign a home directory to a user (Computer Management\System Tools\Local Users and Groups\Users: Profile tab + Local path : specify a local home folder)
- How to create the .ssh folder (with command line)
- How to set right permission to ensure that account home directory, .ssh directory and file authorized_keys are not group-writable or world-writable.
Recommended permissions for .ssh directory are 700. Recommended permissions for authorized_keys files are 600.

Please tell me if I'm wrong for the first two points and how to change the permissions on the .ssh and home directory folders.

My main problem is that I'm getting the error: "server refused public-key signature despite accepting key!"

The connexion is ok with a login/password.

Here is the log file.

Thanks for your help.

. 2016-07-04 17:41:07.825 --------------------------------------------------------------------------
. 2016-07-04 17:41:07.935 Looking up host "10.29.21.1"
. 2016-07-04 17:41:07.935 Connecting to 10.29.21.1 port 22
. 2016-07-04 17:41:07.935 Selecting events 63 for socket 1092
. 2016-07-04 17:41:08.044 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:08.044 Looking for incoming data
. 2016-07-04 17:41:08.044 Looking for network events
. 2016-07-04 17:41:08.044 Detected network event
. 2016-07-04 17:41:08.044 Enumerating network events for socket 1092
. 2016-07-04 17:41:08.044 Enumerated 18 network events making 18 cumulative events for socket 1092
. 2016-07-04 17:41:08.044 Handling network write event on socket 1092 with error 0
. 2016-07-04 17:41:08.044 Handling network connect event on socket 1092 with error 0
. 2016-07-04 17:41:08.044 Looking for network events
. 2016-07-04 17:41:08.060 Detected network event
. 2016-07-04 17:41:08.060 Enumerating network events for socket 1092
. 2016-07-04 17:41:08.060 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:08.060 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:08.060 Server version: SSH-2.0-OpenSSH_7.1p1 Microsoft_Win32_port_with_VS
. 2016-07-04 17:41:08.060 Using SSH protocol version 2
. 2016-07-04 17:41:08.060 We claim version: SSH-2.0-WinSCP_release_5.7.7
. 2016-07-04 17:41:08.060 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:08.060 Looking for incoming data
. 2016-07-04 17:41:08.060 Looking for network events
. 2016-07-04 17:41:08.060 Detected network event
. 2016-07-04 17:41:08.060 Enumerating network events for socket 1092
. 2016-07-04 17:41:08.060 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:08.060 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:08.060 Doing Diffie-Hellman group exchange
. 2016-07-04 17:41:08.060 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:08.060 Looking for incoming data
. 2016-07-04 17:41:08.060 Looking for network events
. 2016-07-04 17:41:08.091 Detected network event
. 2016-07-04 17:41:08.091 Enumerating network events for socket 1092
. 2016-07-04 17:41:08.091 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:08.091 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:08.091 Doing Diffie-Hellman key exchange with hash SHA-256
. 2016-07-04 17:41:08.606 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:08.606 Looking for incoming data
. 2016-07-04 17:41:08.606 Looking for network events
. 2016-07-04 17:41:08.622 Detected network event
. 2016-07-04 17:41:08.622 Enumerating network events for socket 1092
. 2016-07-04 17:41:08.622 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:08.622 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:09.169 Verifying host key rsa2 0x10001,0xe9be7339ecf5f757 ec627ea77d11e1ef 4bc85cc15d3ed615 ea889bd078d7a8e4 133948b2de0a099d 73e37501e20d719d 032a0f54e6859cad a4178fdf5a0ecd21 ce632d67043c07a0 89f64f2cfaed3535 455460f20565fa75 30bb28a13d3ed3be e745a87fa4905c43 b03e9939a848a141 5618f84eb61e858a 742914cd655635c7 d067e17f7af3a614 0f01bde2e1f6aac0 ff3f6c2f63d86f62 3114e04e5105ce81 a4ef5e15570f879a 7a8a1f86efbf38a1 fa9fa0d49b2c6389 a6adc74cf074a148 bf069551273e69bd 78bdd25f2661cdad a1d8f324b4909c1b f4bdb7677c513dcd 245320f106428b4a 620c80225612bea5 5eec13721de1eb6c 4f6d6e7a388b3d39 with fingerprint ssh-rsa 2048 88:71:1a:f3:d4:b8:a6:e3:d7:b2:94:04:77:2c:01:3d
. 2016-07-04 17:41:09.216 Host key matches cached key
. 2016-07-04 17:41:09.216 Selecting events 63 for socket 1092
. 2016-07-04 17:41:09.216 Host key fingerprint is:
. 2016-07-04 17:41:09.216 ssh-rsa 2048 88:71:1a:f3:d4:b8:a6:e3:d7:b2:94:04:77:2c:01:3d
. 2016-07-04 17:41:09.216 Initialised AES-256 SDCTR client->server encryption
. 2016-07-04 17:41:09.216 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2016-07-04 17:41:09.216 Initialised AES-256 SDCTR server->client encryption
. 2016-07-04 17:41:09.216 Initialised HMAC-SHA-256 server->client MAC algorithm
. 2016-07-04 17:41:09.216 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:09.216 Looking for incoming data
. 2016-07-04 17:41:09.216 Looking for network events
. 2016-07-04 17:41:09.216 Detected network event
. 2016-07-04 17:41:09.216 Enumerating network events for socket 1092
. 2016-07-04 17:41:09.216 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:09.216 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:09.216 Reading private key file "C:\Users\Administrateur\Documents\privateKey.ppk"
. 2016-07-04 17:41:09.216 Pageant is running. Requesting keys.
. 2016-07-04 17:41:09.216 Pageant has 1 SSH-2 keys
. 2016-07-04 17:41:09.216 Pageant key #0 matches configured key file
! 2016-07-04 17:41:09.216 Using username "FTPOreus".
. 2016-07-04 17:41:09.278 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:09.278 Looking for incoming data
. 2016-07-04 17:41:09.278 Looking for network events
. 2016-07-04 17:41:09.278 Detected network event
. 2016-07-04 17:41:09.278 Enumerating network events for socket 1092
. 2016-07-04 17:41:09.278 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:09.278 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:09.278 Trying Pageant key #0
. 2016-07-04 17:41:09.278 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:09.278 Looking for incoming data
. 2016-07-04 17:41:09.278 Looking for network events
. 2016-07-04 17:41:09.278 Detected network event
. 2016-07-04 17:41:09.278 Enumerating network events for socket 1092
. 2016-07-04 17:41:09.278 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:09.278 Handling network read event on socket 1092 with error 0
! 2016-07-04 17:41:09.278 Authenticating with public key "rsa-key-20160704" from agent
. 2016-07-04 17:41:09.450 Sending Pageant's response
. 2016-07-04 17:41:09.450 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:09.450 Looking for incoming data
. 2016-07-04 17:41:09.450 Looking for network events
. 2016-07-04 17:41:09.513 Detected network event
. 2016-07-04 17:41:09.513 Enumerating network events for socket 1092
. 2016-07-04 17:41:09.513 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:09.513 Handling network read event on socket 1092 with error 0
! 2016-07-04 17:41:09.513 Server refused public-key signature despite accepting key!
. 2016-07-04 17:41:09.528 Server refused public-key signature despite accepting key!
. 2016-07-04 17:41:09.528 Attempting keyboard-interactive authentication
. 2016-07-04 17:41:09.528 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:09.528 Looking for incoming data
. 2016-07-04 17:41:09.528 Looking for network events
. 2016-07-04 17:41:09.528 Detected network event
. 2016-07-04 17:41:09.528 Enumerating network events for socket 1092
. 2016-07-04 17:41:09.528 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:09.528 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:09.528 Server refused keyboard-interactive authentication
. 2016-07-04 17:41:09.528 Prompt (password, "SSH password", <no instructions>, "Mot de passe :")
. 2016-07-04 17:41:15.341 Sent password
. 2016-07-04 17:41:15.341 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:15.341 Looking for incoming data
. 2016-07-04 17:41:15.341 Looking for network events
. 2016-07-04 17:41:15.341 Detected network event
. 2016-07-04 17:41:15.341 Enumerating network events for socket 1092
. 2016-07-04 17:41:15.341 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:15.341 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:15.341 Access granted
. 2016-07-04 17:41:15.341 Opening session as main channel
. 2016-07-04 17:41:15.341 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:15.341 Looking for incoming data
. 2016-07-04 17:41:15.341 Looking for network events
. 2016-07-04 17:41:15.341 Detected network event
. 2016-07-04 17:41:15.341 Enumerating network events for socket 1092
. 2016-07-04 17:41:15.341 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:15.341 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:15.341 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:15.341 Looking for incoming data
. 2016-07-04 17:41:15.341 Looking for network events
. 2016-07-04 17:41:15.341 Detected network event
. 2016-07-04 17:41:15.341 Enumerating network events for socket 1092
. 2016-07-04 17:41:15.341 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:15.341 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:15.341 Opened main channel
. 2016-07-04 17:41:15.341 Waiting for the server to continue with the initialization
. 2016-07-04 17:41:15.341 Looking for incoming data
. 2016-07-04 17:41:15.341 Looking for network events
. 2016-07-04 17:41:15.356 Detected network event
. 2016-07-04 17:41:15.356 Enumerating network events for socket 1092
. 2016-07-04 17:41:15.356 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:15.356 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:15.356 Started a shell/command
. 2016-07-04 17:41:15.403 --------------------------------------------------------------------------
. 2016-07-04 17:41:15.403 Using SFTP protocol.
. 2016-07-04 17:41:15.403 Doing startup conversation with host.
. 2016-07-04 17:41:15.403 Session upkeep
. 2016-07-04 17:41:15.403 Looking for network events
. 2016-07-04 17:41:15.403 Timeout waiting for network events
> 2016-07-04 17:41:15.466 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2016-07-04 17:41:15.466 01,00,00,00,06,
. 2016-07-04 17:41:15.466 Sent 9 bytes
. 2016-07-04 17:41:15.466 There are 0 bytes remaining in the send buffer
. 2016-07-04 17:41:15.466 Looking for network events
. 2016-07-04 17:41:15.466 Timeout waiting for network events
. 2016-07-04 17:41:15.466 Waiting for another 4 bytes
. 2016-07-04 17:41:15.466 Looking for incoming data
. 2016-07-04 17:41:15.466 Looking for network events
. 2016-07-04 17:41:15.466 Detected network event
. 2016-07-04 17:41:15.466 Enumerating network events for socket 1092
. 2016-07-04 17:41:15.466 Enumerated 1 network events making 1 cumulative events for socket 1092
. 2016-07-04 17:41:15.466 Handling network read event on socket 1092 with error 0
. 2016-07-04 17:41:15.466 Received 154 bytes (0)
. 2016-07-04 17:41:15.466 Read 4 bytes (150 pending)
. 2016-07-04 17:41:15.466 Read 150 bytes (0 pending)
< 2016-07-04 17:41:15.466 Type: SSH_FXP_VERSION, Size: 150, Number: -1
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License