scp <source>
<destination>
copy file/directory from local machine to remote server
scp /path/to/file user@host:/path/to/destination
scp -r ~/project/src [email protected]:~/project
scp ~/project/src/app.js [email protected]:~/project
scp app.js [email protected]:~/project
copy file/directory from remote server to locale machine
scp user@host:/path/to/file /path/to/destination
scp -r [email protected]:~/project/src ~/project
scp [email protected]:~/project/src/index.js .
scp [email protected]:~/project/src/index.js ~/foo
scp [email protected]:~/project/src/index.js /home/jane/foo