Hello, we are evaluating at the moment and are having trouble authenticating SFTP connections. The connection works fine, but when we attempt to Login we are getting various failures:

The session was closed by the remote connection end or Invalid packet

The error depends on the server that we are trying to connect to.

It all cases we are using a user name and password to authenticate, so no PKI authentication. If we use a regular SFTP client e.g. Core or Cute then connecting to the server works fine.

The only thing I can think of is that I notice if you use Core FTP as a client or Cute FTP you are prompted as to whether you want to trust and cache the services key. Do we need to trust the services key somehow in code? If so how do we do that?

Thanks, Mark

asked 05 Jan '11, 10:10

Mark%20Baker's gravatar image

Mark Baker
16
accept rate: 0%

Would it be possible to create a communication log using Sftp object's LogWriter property (as described at rebex.net/kb/logging.aspx) and either add that to your post or mail it to support@rebex.net for analysis? That should make it possible to tell what is going on!

(06 Jan '11, 10:56) Lukas Pokorny ♦♦

But this is not caused by an untrusted key - unless you add a code to check the key (as described at http://www.rebex.net/sftp.net/tutorial-sftp.aspx#basics), all keys are accepted by default.

(06 Jan '11, 10:58) Lukas Pokorny ♦♦
Be the first one to answer this question!
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:

×144
×44

Asked: 05 Jan '11, 10:10

Seen: 573 times

Last updated: 05 Jan '11, 10:10