I am trying to transfer a directory from my local host to a remote server.

I am using a Mac.

i keep getting this message

cp: cannot stat ‘/Users/seeker/Documents/devfolder/Laravel/Dating/baseLaravelDating/dating/’: No such file or directory

I followed the instruction in this question

i.e I first logged into the remote server via SSH and from the root of server I ran the following;

scp -r /Users/seeker/Documents/devfolder/Laravel/Dating/baseLaravelDating/dating   root@ 

I know that the location of the local files is correct because i ran the command:


The files i am trying to transfer is located in a directory called dating.

  • 1
    You should run scp on your local machine to copy your local files. Also, are you sure you want to login as root? – Panki Jun 12 at 8:36
  • hi @panki. thanks for replying. what is wrong with using root – theSeeker Jun 12 at 9:00
  • See this detailed explanation: unix.stackexchange.com/questions/82626/… – Panki Jun 12 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.