Skip to Content

SFTP connection issue

Hi All,

I am getting below error while establishing SFTP connection to a remote server from PI system.

" Details: putFile: Could not connect to remote host; Reason: Could not change to given base directory: /ASTBID1D/fair/upload/dev>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: true>>Fatal: true"

FYI - From OS level connection is working and also verified the base directory at remote server.

Please suggest how to solve this issue.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jul 06, 2016 at 10:55 AM

    Hi,

    Please check if the port is 22 or server is using any other port.also you can varify the authentication certificate via external ftp tools (Filezila).

    regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 06, 2016 at 11:25 AM

    Hi Vinoth,

    are you using key based authentication?

    Please give * in fingerprint and try again.

    Regards,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 06, 2016 at 11:32 AM

    Could not change to given base directory

    This could be due to the permissions in the directory.

    Check the folder has write permissions to write the file.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 06, 2016 at 12:36 PM

    Hi Vinoth,

    1. Please try to connect to the destination sFTP server from the same host where PI is located by executing sftp <user used to send the file>@<Target host name> command.

    2. Try to change the forward slash (/) to backslash (\) symbol in defined path.

    Best regards!

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member @VLR31 ###

      Hello Vinoth,
      have you executed this connections from the same host where the PI is installed? Have you checked the firewalls or any other network protection SW which may block this connection?

      As a very last solution you could try to specify another folder and try to process with it.