I try to upload localDir
to remote server i follow this guide SFTP Guide
but when upload the localDir
and go inside i see blankDir I did the following
sftp> lls
404.html crm nginx-logo.png test.php
sftp> ls
crm
sftp> put -r crm /usr/share/nginx/html
Uploading crm/ to /usr/share/nginx/html/crm
Entering crm/
I created crm
dir according to the following note in SFTP Guide
Note
There is currently a bug in the versions of OpenSSH shipped with current >Ubuntu releases (at least 14.04 to 15.10) that prevents the above command >from operating correctly. Upon issuing the command above to transfer content >to a server using the buggy version of OpenSSH, the following error will be >given: Couldn't canonicalise: No such file or directory.
To work around this issue, create the destination directory on the remote >end first by typing mkdir localDirectory. Afterwards, the above command >should complete without error.
but upload file working well.
Any Suggestions ?
help or ?
i will update my quesftp> put -r crm Uploading crm/ to /usr/share/nginx/html/crm Entering crm/
Aftermkdir crm2
andls
i seecrm2
put -r localDirectory
with thelocalDirectory
in your case will be/crm
but the location where you are uploading it to on the server (/usr/share/nginx/html/
) the /crm is already there. If you're in/usr/share/nginx/html/
then runrmdir crm
and then do theput -r crm
to see if it shows what you're expecting. I think the/crm
is already where you are trying to upload it to, or I'm totally lost which is absolutely possible... put I do FTP stuff all the time... Perhaps the error isn't clear to me.mkdir crm
and then runput -r crm
.