Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Winscp.net can't open key file on file share

jdiaz@... wrote:

Was this issue ever resolved? I'm having a similar issue connecting to a SFTP session.

As you can see above, we never got enough information from the original poster. Can you share details about your specific setup?
jdiaz@...

Re: Winscp.net can't open key file on file share

Was this issue ever resolved? I'm having a similar issue connecting to a SFTP session.
martin

Re: Winscp.net can't open key file on file share

So the process that uses the WinSCP .NET assembly does not have a read access to the share?
csuriano

Winscp.net can't open key file on file share

I am trying to use winscp.net to sftp files to an Amazon.com sftp site. I have a username and password for Amazaon. My private key path is on a file share on my network. I get the following stack trace:

Unable to use key file " \\evtewafsv1\EDI\Keys\SFTP SEND PRIVATE.ppk" (unable to open file)
Using username "AmazonUserName".
Access denied.

Authentication failed.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader()
at WinSCP.Session.Open(SessionOptions sessionOptions)

This makes sense since the Amazon credentials won't work on our network. How do I tell winscp.net the credentials to access the private key file?