login about faq

I am trying to use your SFTP component to list the files in a directory.

When I call sftp.OpenDir("."), it comes back with null and the last error text is:

ChilkatLog:
  OpenDir:
    DllDate: Aug  5 2012
    UnlockPrefix: Anything for 30-day trial
    Username: chilkat
    Architecture: Little Endian; 64-bit
    Language: .NET 4.0 / x64
    VerboseLogging: 0
    SshVersion: SSH-2.0-sftp server
    SftpVersion: 3
    hcCurDate: Mon, 03 Dec 2012 14:37:07 +0000
    hcExpire: 7/2012
    path: .
    Sent FXP_OPENDIR
    StatusResponseFromServer:
      Request: FXP_OPENDIR
      InformationReceivedFromServer:
        StatusCode: 3
        StatusMessage: [2012/12/03 14:37:04.956] SSE2636 Command rejected due to sftp proxy policy settings: SSH_FXP_OPENDIR
      --InformationReceivedFromServer
    --StatusResponseFromServer
    Failed.
  --OpenDir
--ChilkatLog

asked Dec 03 '12 at 09:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


This is not a problem with your application code, nor is it a problem with the Chilkat component. It's an issue with the SSH/SFTP server. For whatever reason, your user account's home directory does not have permission to access a directory listing. This problem can only be fixed at the server, either with the SSH server user account settings, or the filesystem permissions for the HOME directory.

link

answered Dec 03 '12 at 09:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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:

×201
×2
×2
×1

Asked: Dec 03 '12 at 09:52

Seen: 2,438 times

Last updated: Dec 03 '12 at 09:53

powered by OSQA