I want to transfer my folder from my computer to server by using scp command. Folder structure like these : FOLDER/SubFolders/*.json. There are more than 1 SubFolders. Each of them has different JSON files. How can I transfer this FOLDER from my computer to server by using scp? I tried this :

$ scp FOLDER server@server_address

but I got this error:

FOLDER: not a regular file

  • 2
    use scp -r FOLDER user@host: -- don't omit the -r option (recursive) and the colon (:) after host. – mosvy May 30 at 19:48
  • @mosvy thank you! It is worked! – Gökhan Özeloğlu May 30 at 19:53

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.