I have successfully transferred a file from a Linux machine to windows. But I am unable to transfer the file to a MacBook Air that I have. I have already tried going to system preferences and was able to verify I have remote login selected.
The syntax I am using is scp -P PORTNUM FILE_NAME USERNAME@IP_ADDRESS:FILE_PATH
I receive the error message, connection refused connection timed out.
The most progress I have made was when I also included the username and IP address of where the source file is located. It asked to add a key fingerprint and continue connection which I typed yes to.
It then prompts me to enter a password, but once I do it never actually makes a connection and ends saying connection time out after a few minutes.