I forgot how to do this and I found this other StackOverflow post about it but now I'm getting this error:
ssh: connect to host xx.xx.xx.xx port 22: Permission denied lost connection
I am pretty sure it has something to do with the permissions to the folder in which I want to write using chmod
but I can't remember which ones do I need to change in the target computer.