we are having problems sending sFTP messages using your sFTP tool with PPK private keys. We have managed to use .pem keys, but our company standard is using .ppk

we currently have a trial version , would you be able to confirm we can use .ppk and maybe send some sample code.

we are using the FTPack.1

thanks

asked 29 Jan '10, 17:03

simon's gravatar image

simon
161
accept rate: 0%


PuTTY .ppk private key format are supported. To authenticate using a .ppk private key, it should be possible to use the same code asfor .pem keys:

 // create client and connect 
 Sftp client = new Sftp();
 client.Connect(hostname);

 // verify the server's fingerprint (client.Fingerprint) 
 ...

 // load the private key
 SshPrivateKey privateKey = new SshPrivateKey("key_rsa.ppk", "password");

 // authenticate using the key
 client.Login(username, privateKey);

If this doesn't work, please let us know what kind of exception you get, we should be able to solve it. Does it fail when initializing the SshPrivateKey or inside the Login method?

If it's the Login method, a communication log produced using the Sftp object's LogWriter property (as described at http://www.rebex.net/kb/logging.aspx) might help - you can send it to support@rebex.net for analysis.

link

answered 31 Jan '10, 19:57

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×141

Asked: 29 Jan '10, 17:03

Seen: 1,762 times

Last updated: 31 Jan '10, 19:57