File/Folder Upload/Download From/To Local/Remote

 copy from remote to local

scp file.txt remote_username@10.10.0.2:/remote/directory


scp folder from server to local

scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/


how to copy directory to a ssh server

# Copy from machine a to b

scp -r /path/to/directory user@ipaddress:/path/to/destination


# Copy from machine b to a

scp -r user@ipaddress:/path/to/destination /path/to/directory



copy folder from ssh to local

scp -r user@your.server.example.com:/path/to/foo /


ssh copy folder from local to remote

scp -ra /path/to/local/storage user@remote.host:/path/to/copy


ssh copy folder from local to remote

scp /path/of/your/local/filename username@hostname:/path/to/remote/server/folder

Comments

Popular posts from this blog

Git post receive setup at server for git push to the production from local machine

Deploy laravel application to digital ocean droplet