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

Posted June 22, 2020 1.4k views

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.

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.

Submit an Answer
1 answer

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.


by Justin Ellingwood
SFTP is a secure way to transfer files between local and remote servers. Much more secure than FTP, this protocol uses an SSH tunnel to establish a connection and uses encryption to transfer files in an interactive session.