Topic "Server refused our key"

Author Message
xi

Guest


I try use winscp from command line:

C:\Program Files (x86)\WinSCP>WinSCP.com scp://username@xxx.yyyy.net /privatekey=xxxxxxxx-pri.ppk
or
C:\Program Files (x86)\WinSCP>WinSCP.com sftp://username@xxx.yyyy.net /privatekey=xxxxxxxx-pri.ppk

but result is:

Searching for host...
Connecting to host...
Authenticating...
Using username "username".
Server refused our key.
Password:

i have private key in winscp folder.

I try it (.ppk, username, server, scp/sftp) in GUI and it works...strange.
I use WinSP Version 4.2.1. (Build 428)
xi

Guest


Key that i have is not privatekey but hostkey in winscp...

In command line:

winscp.com /hostkey=xxxxxxxx-pri.ppk ....
 

You can post new topics in this forum




Search

What is WinSCP?

WinSCP is an open source SFTP client and FTP client for Windows. Its main function is the secure file transfer between a local and a remote computer. Beyond this, WinSCP offers basic file manager functionality. It uses Secure Shell (SSH) and supports, in addition to Secure FTP, also legacy SCP protocol. [More]

WinSCP is also available as a plugin to two file managers, FAR and Altap Salamander.

Donate

Donate via PayPal

License

WinSCP is free, open-source software, and is distributed under the GNU General Public License (GPL). [More]

Associations

Site design by Black Gate