Upload Folder via Mac Terminal

macos

Solution

Do you have to use `ftp`? I like to use `scp` (secure copy) when the remote host supports ssh (as so many of them do).

`scp -r mydirectory username@example.com:destdir`

The `-r` means "recursive" so it will recursively copy the entire directory. Replace `username` with your username, etc., etc. `destdir` is a relative path on the remote server (whatever directory you wind up in if you log in) as long as you don't use a leading slash `/` -- then it will be an absolute path.

Problem

How can I upload an entire folder via FTP Mac Terminal?

Original source