Topic "WINscp using a key"

Author Message
Pat Coburn

Guest


Hi,

I am trying to establish a winscp session between my server and the university's server. they have input the public key on their end, but when I go to connect, it fails the key and trips over to the password. The exact message is:

. Reading private key file "E:\AISInterface\oraprivatekey.ppk"
. Unable to use this key file (SSH1 private key)
! Unable to use key file "E:\AISInterface\oraprivatekey.ppk" (SSH1 private key)
. Keyboard-interactive authentication refused

It is using scp as the transfer protocol.

Any assistance would be appreciated.

thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Note that SSH2 is the default SSH version in WinSCP and you are trying to use SSH1 key. Try to switch to SSH1, or better get the SSH2 key.
_________________
Martin Prikryl
PeterGfader
[View user's profile]

Joined: 2012-11-20
Posts: 2
Hi Pat

>>Try to switch to SSH1, or better get the SSH2 key.
How can i switch to SSH1? From commandline or via .NET Automation?

If I use the winscp.ini file with the below section I can establish a connection

[Sessions\eaoload@srt20601ax]
HostName=myHOST
SshProt=1
PublicKeyFile=C:%5CUsers%5C.....

But I need to connect via .NET. (My 2nd not preferred option would be to start winscp via a new process..)

THANKS!
PeterGfader
[View user's profile]

Joined: 2012-11-20
Posts: 2
I figured it out, via one of the forum posts...
--> sessionOptions.AddRawSettings("SshProt", "1");


It would be great to have this in the documentation!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
PeterGfader wrote:
It would be great to have this in the documentation!

https://winscp.net/eng/docs/faq_script_ini
https://winscp.net/eng/docs/rawsettings
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