SFTP - Error no such file

Whilst using SFTP, you may come across the error: no such file, during deployment. This shows that a reference was made to a file that doesn't exist.

You will need to ensure that all the directories in the specified path do exist.

If is useful to check both SSH and SFTP, as they can be configured separately as different protocols, with different paths. To check from a command line you would use the following commands to connect:

## SSH

$ ssh user@server -p port 
$ ls /deployment/path


$ sftp user@server -p port
$ ls /deployment/path

Checking that the directory you've entered as the deployment path is accessible across both protocols, and that you have appropriate permissions to be able to upload/delete files there.

Proudly powered by Katapult. Running on 100% renewable energy.