I have two AWS EC" Ubuntu 16.04 instances.
One is a Chef workstation and the other is a Chef Server.
I want to copy the RSA private key file, chefadmin.pem, from the Chef server to the workstation using scp.
This is the command, that I’ve ran:
scp -i ~/.ssh/chef.pem email@example.com:/drop/chefadmin.pem ~/learn-chef/.chef/chefadmin.pem
This is the output from the command: Warning: Identity file /root/.ssh/chef.pem not accessible: No such file or directory.
The authenticity of host 'ec2-34-254-180-207.eu-west-1.compute.amazonaws.com (172.31.45.61)' can't be established. ECDSA key fingerprint is SHA256:vx45A3HhOAJMxtqyMRndZ//H/YhI9jaWAaIb8fg1izY. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ec2-34-254-180-207.eu-west-1.compute.amazonaws.com,172.31.45.61' (ECDSA) to the list of known hosts. Permission denied (publickey).