QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

Permission denied (publickey). while using scp command how to fix this #991

Open prashanth-1212 opened 3 years ago

prashanth-1212 commented 3 years ago

scp -r -i "docker.pem" gameoflife.war ubuntu@ec2-18-188-162-75.us-east-2.compute.amazonaws.com:/home/ubuntu

santhoshd402 commented 3 years ago

please remove -r -r is used for copying folder try changing war file permissions

If not resolved share me error screenshot

bhaskardegala commented 3 years ago

Do you have your pem file in same folder ?