SFTP Error: "Could not change directory to “/var/www/”. Invalid response serial number."

I can’t seem to upload to my Droplet via SFTP. I can log in but if I try to upload files I get this error.

Could not change directory to “/var/www/”. Invalid response serial number.

Any ideas? I tried to just reset the root password but that didn’t help.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @Coopgrafik

Would you mind checking the current disk space usage on your droplet? You can do that using the following command via ssh:

df -h

I assume you’re experiencing this error in your SFTP client (FileZilla or another). What you can also do is to check that the permissions of the folder are not 000 and are readable, writable - 755 or 750 should work for you.

You can also try to connect using the sftp client in your terminal/command line:

sftp -oPort=custom_port sammy@your_server_ip_or_remote_hostname

in order to get in another directory you can issue this command:

cd testDirectory

If everything is working then this might be an issue with the SFTP client. You can also check this tutorials:

Let me know how it goes.

Regards, Alex