![]() |
VOOZH | about |
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Former Senior Technical Writer at DigitalOcean, specializing in DevOps topics across multiple Linux distributions, including Ubuntu 18.04, 20.04, 22.04, as well as Debian 10 and 11.
I help Businesses scale with AI x SEO x (authentic) Content that revives traffic and keeps leads flowing | 3,000,000+ Average monthly readers on Medium | Sr Technical Writer(Team Lead) @ DigitalOcean | Ex-Cloud Consultant @ AMEX | Ex-Site Reliability Engineer(DevOps)@Nutanix
With over 6 years of experience in tech publishing, Mani has edited and published more than 75 books covering a wide range of data science topics. Known for his strong attention to detail and technical knowledge, Mani specializes in creating clear, concise, and easy-to-understand content tailored for developers.
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!
Awesome tuts. Thanks.
Easier to use FilaZilla - hopefully my tutorial will be here soon.
Sorry to steal your thunder: <a href=โhttps://www.digitalocean.com/community/articles/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vpsโ>How To Use Filezilla to Transfer and Manage Files Securely on your VPS</a>.
-r works with put ?? i am trying , put -r localfile , and it is saying , invalid flag -r
Please help. Using โput -r localDirectoryโ as a template (I want to upload all the files and folders from a folder on my local machine) I ran: sftp> lpwd Local working directory: /Users/Larry/Documents/Website sftp> put -r .
But the results had errors: Uploading ./ to /var/www/html/. remote open(โ/var/www/html/.DS_Storeโ): Permission denied Uploading of file ./.DS_Store to /var/www/html/.DS_Store failed! remote open(โ/var/www/html/.htaccessโ): Permission denied Uploading of file ./.htaccess to /var/www/html/.htaccess failed! remote open(โ/var/www/html/index.phpโ): Permission denied Uploading of file ./index.php to /var/www/html/index.php failed!
Not sure what is wrong, or how to fix it. Perhaps locally I have to be one directory above the desired folder to copy?
sftp> lcd โฆ sftp> lpwd Local working directory: /Users/Larry/Documents sftp> put -r Website Uploading Website/ to /var/www/html/Website Couldnโt canonicalise: No such file or directory Unable to canonicalise path โ/var/www/html/Websiteโ sftp>
Larry: It looks like youโre trying to upload files into a directory on the remote server that you do not have permission to write to.
There are a few ways around this. You could upload them to a directory on the remote server that you do have access to, like your home directory, and then sign in through SSH and move the files over to the correct location (using sudo or by signing in with root).
Another alternative is to log in as the root user when connecting through SFTP by giving a command like sftp root@your_server_ip. You would then have adequate permissions to transfer the files to the web root as you are attempting to do.
Please write back if you have more questions.
I had changed my ssh port when i configured my server so i use for example ssh -p 4444 username@server_ip_addr
but how can i do the same for sftp i tried sftp -p 4444 username@server_ip_addr but i did not work connection closing
You need to give the argument -oPort
sftp -oPort 4444 username@server_ip_addr
Hey, I can ssh onto my droplet, but if I type โputโ, it says โNo command โputโ foundโ. It does the same for commands like โlpwdโ and โlcdโ. Any idea about whatโs happening?
alishaaukani+digoc:
You need to use the <code>sftp</code> command instead of <code>ssh</code> when you wish to use the SFTP functionality. This will take you into an SFTP session instead of a normal SSH session, and allow you to use the commands you mention and transfer files.
Let me know if you have any additional questions.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.