Problem using SFTP to copy files onto server
I am getting error stat : no such file or directory"
index.html file is thr on desktop of my ubuntu VM, same error for folders. "put Desktop/index.html" is the command m using |
???
1. Did you have a question?
2. The problem information is interesting. If you DO have a question, you might want to provide the command line and some detail about the process. Remember to use code tags to make sure the code format is preserved. |
I am learning how to use sftp to transfer files from my ubuntu machine to my webserver, I was following an online tutorial, I logged into my webserver using command " ssh sftp root@1.1.1.1".
then I went to var/www/html and according to tutorial i gave the command "sftp> put Desktop/index.html". which resulted in error "stat Desktop/index.html: No such file or directory". The file is there on my desktop and name is also correct. My question is how can i solve this. Thanks |
Problem using SFTP to copy files onto server
I was trying to copy files from my ubuntu VM to my webserver using sftp, i logged into webserver using " ssh sftp root@1.1.1.1", went to var/www/html
and gave this command "sftp>put Desktop/index.html". thats where i got the error "stat Desktop/index.html: no such file or directory". How can i solve this. The file name is correct and i also tried "put home/argo/Desktop/index.html". |
Problem using SFTP to copy files onto server
Why no replies............
|
What is the output if you use the command
Code:
lls |
Problem using SFTP to copy files onto server
nothing,
sftp> lls sftp> i am running it on VM(hyper-v) so i dont know how to copy paste it from thr, but nothing happend when i entered that command. |
Ok, how about
Code:
lpwd |
Problem using SFTP to copy files onto server
the output was "Local working directory: /root"
|
Quote:
/root/Desktop/index.html or /root/home/argo/Desktop/index.html which were the two files you attempted to put. |
Problem using SFTP to copy files onto server
I opened a new console, cd Desktop, then pwd, output was /home/argo/Desktop.
|
Quote:
Either run ssh as a normal user (you), or check out the lcd command here: http://www.tutorialspoint.com/unix_commands/sftp.htm |
Problem using SFTP to copy files onto server
but root is the only user on my server at the moment, should i change the directory path to my desktop?
|
Quote:
I asked you to go and see if /root/Desktop/index.html or /root/home/argo/Desktop/index.html existed, so that you could understand what the problem was. |
Quote:
|
All times are GMT -5. The time now is 05:04 AM. |