TLDR: I've spent several hours trying to set up a SFTP connection to a Synology NAS, and then an Ubuntu webserver when that failed. It seems the issue is Blue Iris does not use the directory paths specified in setup.
More details: There is a "Base directory" option when setting up the SFTP connection, and a "Folder" path option when setting up the alert action. I have tried multiple things in both places, but files will only upload to the SFTP user's home directory (/home/sftpuser/).
On the Synology NAS and when using a Chroot'ed user on the webserver (followed these instructions: https://www.digitalocean.com/community/ ... untu-20-04) I was getting "SSH_FX_PERMISSION_DENIED" errors when running the setup test. I'm assuming it is because it was not writing to the specified folder the user has permissions to. On the webserver the user is set up (and I have confirmed in Filezilla) to log into the /var/sftp/ path by default. It then needs to write files in the "sftpuser" folder inside that path.
Here is the full log when hitting "Test" on the FTP tab:
Code: Select all
Connecting to 192.168.0.51
Connected
Uploading to /sftpuser/ftptest.txt
Sending
FTP: ChilkatLog:
UploadFileByName:
DllDate: Jul 25 2023
ChilkatVersion: 9.5.0.95
UnlockPrefix: BLUEIR
UnlockStatus: 2
Architecture: Little Endian; 64-bit
Language: Visual C++ 2019 / x64
VerboseLogging: 0
SshVersion: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
SftpVersion: 3
uploadFileByName:
remoteFilePath: ftptest.txt
localFilePath: C:\PROGRA~3\BLUEIR~1\temp\ftptest.txt
localFileSize: 20
sftpOpenFile:
remotePath: ftptest.txt
access: writeOnly
createDisposition: createTruncate
v3Flags: 0x1a
Sent FXP_OPEN
responseMsgType: SSH_FXP_STATUS
statusResponseFromServer:
request: FXP_OPEN
statusCode: SSH_FX_PERMISSION_DENIED
statusMessage: Permission denied
--statusResponseFromServer
retryFilepath: ./ftptest.txt
remotePath: ./ftptest.txt
access: writeOnly
createDisposition: createTrunc (4)
Attaching screenshots of my FTP and alert settings.