Uploading folders via Terminal

There are times when I want to upload a chunk of files without logging into (S)FTP. If you’re on a Mac it’s a simple command that will upload everything in a specified folder.

scp -r LOCALPATH user@host:REMOTEPATH

Example:

scp -r ~/Desktop/folder/ user@domain.com:/var/www/path/