In order to copy files from local to a remote system using ssh, there should be an authorized user with a pem file. And also for that particular user in the remote system, there should be proper permissions for the destination.
Remote System
- Login to the remote server using putty or through powershell.
- Navigate to the destination folder
- Change the permissions using the below command