I can login to the remote server via ssh and navigate through it's file system, but as soon as I try to scp a file from the server to my laptop I get an error message.
Example:
user@server:/file$ scp -r user@server: /file/ /My/Home/Dir [I Hit Enter]
Permission denied (publickey)
Why am I getting this error, and how can I resolve this.
Thanks