I have created a simple VM in azure in which I will have to host a very simple server written in C.
To send the folder hosted on my computer containing the server to the virtual machine, I use the command from powershell:
scp -r <path_to_key.pem> <path_to_folder_on_my_pc> <azureuser@ip:/home/azureuser/>
The result of this command is
azureuser@ip: Permission denied (publickey).
lost connection
Would anyone who has had this problem have a solution ?