scp files from local to remote machine error: no such file or directory

前端 未结 8 598
有刺的猬
有刺的猬 2020-12-23 13:26

I want to be able to transfer a directory and all its files from my local machine to my remote one. I dont use SCP much so I am a bit confused.

I am connected to my

8条回答
  •  梦毁少年i
    2020-12-23 13:48

    If you want to copy everything in a Folder + have a special Port use this one. Works for me on Ubuntu 18.04 and a local machine with Mac OS X.

    -r for recursive
    -P for Port
    
    scp -rP 1234 /Your_Directory/Source_Folder/ username@yourdomain.com:/target/folder
    

提交回复
热议问题