SCP file copy from Cpanel to Lightsail instance

Are you copying files from cpanel server to amazon lightsail instance with wordpress?. You dont need to struggle. All you need to do is just use this one line.

Download the key from lightsail instance, upload to origin server (eg. cpanel) and change the permission to 6o0 for key.pem. It is super easy!

sudo scp -i "key.pem" file.txt  bitnami@IP:~/.

Replace the ip to static ip of the lightsail instance.