How to copy a directory from remote host with SSH?
- paksoft2009
- 2018-03-03 07:50:23
- 1,747
To copy a remote directory recursively to the connected server use the following SCP command
scp -r user@host:/home/user/path/on/remote/server /var/www/path/on/connected/server
Here -r is to copy content of the remote folder recursively.
It will may ask you to couple of conformations like ECDSA key fingerprint and password, so type yes for ECDSA key fingerprint and password for the remote user.