I tried the following command using my Mac Terminal
scp -rp /path/file user@SERVER_IP:/path/destination/folder
It gives me following error:
user@SERVER_IP: Permission denied (public key).
lost connection
Is there any ports that i am missing to open?