An SFTP Monitor Keeps Reporting the error "Could not open remote file for reading: Permission denied (Access denied to remote resource)" However the SFTP Credentials are Correct
search cancel

An SFTP Monitor Keeps Reporting the error "Could not open remote file for reading: Permission denied (Access denied to remote resource)" However the SFTP Credentials are Correct

book

Article ID: 42601

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

    An SFTP monitor running on App Synthetic Monitor keeps reporting the error

     "Could not open remote file for reading: Permission denied (Access denied to remote resource)"

    However, the SFTP credentials are correct.
 

Environment

Release: CA App Synthetic Monitor

Resolution

The error "Could not open remote file for reading: Permission denied (Access denied to remote resource)" occurs under two circumstances.

First: The first is related to the "Path" variable in the monitor configuration. This value should be set to the location of a specific file, rather than a directory. Here is an example : /<example path>/<example path>/<example file>

Second: Be sure to verify that the SFTP user has both read and write permissions to the file specified in the "Path" variable. The SFTP monitor will check that this user has both permissions and will error otherwise.