Keywords: General - AWS - How to - Other
I tried anything I can. Can you explain to me how do I download a folder by using ssh/scp on bitnami Lightsail? What is the trick?
sudo scp -i KEY-FILE-PATH-ON-SERVER -r deamon@IP:PATH-To-FOLDER-THAT-I-WANT-TO-DOWNLOAD* /LOCAL FOLDER PATH/
KEY-FILE-PATH-ON-SERVER = I uploaded the privat .pem key on the server for the time of downloading. Because I regocnized that I cannot trigger the .pem file from my local pc. My idea was to remove the file after the download will be completed (of course)
deamon@IP = I tried to make the .key file on server secured by permission chmod 600 + deamon user. But it is still “permission denied”.
Can somebody show how do I conntect by scp to my Lightsail Application and download a folder (-r) to my local pc?