login about faq

Our Programmer encountered error while implementing the recently purchased product(below), would appreciatte if you can revert back with recommendation or workaround. Please find below LOG of error for your reference.

CODE:

sftp.connect returns 1(successful)
sftp.AuthenticatePW returns 1(successful)
sftp.InitializeSftp() returns 0 then throws this message

LOG:

ChilkatLog:
  InitializeSftp:
    DllDate: Dec 12 2012
    UnlockPrefix: 
    Username: 
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze3
    SftpVersion: 0
    channelType: session
    clientChannel: 0
    clientInitialWindowSize: 327680
    clientMaxPacketSize: 32768
    Sent open channel request
    genRead_14:
      numBytesRequested: 16
      Connection closed by connected peer.
      Failed to read data on SSH connection.
      Failed to read packet from SSH server.
    --genRead_14
    Socket connection lost, channel closed.
    Failed.
  --InitializeSftp
--ChilkatLog

asked Apr 25 '13 at 09:30

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


It could be that the SSH/SFTP user account does not have permission to use SFTP and the server closes the channel when there is an attempt to use the SFTP "subsystem". It's also possible that SFTP is not enabled for that SSH server.

link

answered Apr 25 '13 at 09:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I have gotten this when the Server side does not have sftp set up correctly, ie incorrect permission on the folder, incorrect permissions on the ssh key. On Unix it has to be a certain setting.

link

answered May 06 '13 at 16:22

cdlvj130's gravatar image

cdlvj130
9691017

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:

×11
×6
×2

Asked: Apr 25 '13 at 09:30

Seen: 2,270 times

Last updated: May 06 '13 at 16:22

powered by OSQA