SCP Error Message “Operation not supported”

I was recently stuck for too long on a rookie problem. I tried to use scp to copy over a directory of files to my local machine by executing the following command:

scp -r [email protected]:/data/jenkins/workspace/myproject/myFolder/ /home/myUserName/myFolder

However, executing this command (and several variants of it) resulted in the following error message:

/home/myUserName: Operation not supported

I did some research for my error message on Google and the StackExchange network but found only red herrings. As such, I thought that it might be useful for future noobs like me if I documented my problem and solution here.

Edit: To assist future viewers, debug info below:

scp -rv [email protected]:/data/jenkins/workspace/myproject/myFolder/ /home/myUserName/myFolder


debug1: Authentication succeeded (password).
Authenticated to ([123.456.789.0]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -r -f /data/jenkins/workspace/myproject/myFolder/
Entering directory: D0755 0 myFolder
Sink: D0755 0 intTest
/home/myUserName/: Operation not supported
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2484, received 3908 bytes, in 0.3 seconds
Bytes per second: sent 8549.3, received 13450.3
debug1: Exit status 1


The answer turned out to be that there was a typo in the destination folder name. I used the folder /home/myUserName when it should have been /Users/myUserName. The fact that the folder didn't exist was what prompted the error message.

One may have expected "no such file or directory" but I'm on Mac. See this answer which says:

/home is used as a mount point for the automounter (see /etc/auto_master and /etc/auto_home), you can't create your own directories in there.

This fact is the root reason for the cryptic "operation not supported" error I got.