Topic "Server Refuse Our Key"

Author Message



I've spent two days on this issue and could not figure it out... Hope somebody could help me with it...

I created a key pair by using PuttyGen. The public key is given to the host admin, and I use the private key to connect to the host via WinSCP GUI (WinSCP.exe) and it is working fine; I can connect to the host without any problems.

The issue is that I could not use it via Command line ( -- it throws server refuse our key error everytime. This happens the same when I try to connect via SSIS using .net assemly.

Would anybody know what is going on and how to fix it? What am I missing? What drives me crazy is I can connect via the WinSCP GUI (WinSCP.exe) but not via command line (

Thanks so much!


Attached is a screenshot of the error...
ScreenShot.png (15.23 KB) [Download]

Description: (none)



And attached is the log...

Thanks so much for your help!
test.log (5.28 KB) [Download]

Description: (none)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24757
Location: Prague, Czechia
Please attach unobfuscated log from the GUI as well as from the script. You can mark the attachments as private.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License