Issue:
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.
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 using the CA Support SFTP: /<CA Site ID>/<CA Case Number>/files_from_customer/myLog.txt
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.
Additional Information:
Please contact CA Technologies Support if you have further questions.