If you’re using a non-default key to SSH into a server SCP will need an extra argument to connect and upload the file.
scp -i TheOtherKey.pem localfile.zip user@example.com:/var/www/uploadedfile.zip
If you’re using a non-default key to SSH into a server SCP will need an extra argument to connect and upload the file.
scp -i TheOtherKey.pem localfile.zip user@example.com:/var/www/uploadedfile.zip