SSH (or SFTP) upload files from OSX terminal
You have to make sure that the path you are copying to exists.

Before executing your scp command, ssh into your remote host, cd to the directory, and issue the pwd command.  That will give you the current working directory.

Copy that to your clipboard.

Exit SSH, then re-issue the scp command with the directory (paste from your clipboard).