I need to send a pdf file (outputted from a gpu and situated) in a remote server to my local (mac) machine. I have tried through my local terminal and received errors for each attempt. the terminal text input and output has been provided below
1.
scp remote:~/path/file.pdf /local/
error
/local: Permission denied
scp -r remote:~/path/file.pdf /local/
error
/local: Permission denied
scp -r -P 8888 remote:~/path/file.pdf /local/
error
ssh: connect to host remote port 8888: Connection refused
Although this question has been posted several times before, I have tried the suggested correct solutions and still have been unable to execute my task. Any solution or direction in this task will be highly appreciated. Thank you