Home>
I installed OpenVPN on EC2, so I am going to SCP the client certificate, private key and CA certificate on the PC. Since OpenVPN was installed over NAT, it cannot be copied from a PC using Teraterm SCP. So, I want to SCP on EC2, which is linked to Internet-Gateway, and then I want to copy to PC with Teraterm SCP.
If i enter the following command on EC2 with OpenVPN installed, an error will occur. If i understand, please give me a professor.
$scp ./pki/private/client.key [email protected]:/home/ec2-user
Permission denied (publickey).
lost connection
-
Answer # 1
-
Answer # 2
The authentication key is wrong.
Can you login with SSH?
Related articles
- linux - sed command sed: no input files error
- linux - yum command fails [error: cannot find a valid baseurl for repo: base]
- python - difference between anaconda on linux and anaconda on windows
- php - i want to execute a linux command when accessing a website
- vba - i want to post between books, but a definition error occurs
- how can i remove the backslash at the end of a sentence with the linux command?
- i want to use the linux tree command on a windows vs code terminal
- linux - cannot use kubectl command
- linux - how to resolve the "command is only available in wsl or inside a visual studio code terminal" error
- linux - conditions under which the command expansion of ls * (asterisk) is executed
- linux - about the total of the ls -la command
- i want to get the work log including the execution command on linux
- nginx - i got a git error: command while doing bundle install on ec2, so please resolve it
- linux - it was cool in x window, but i got an error when i ran it from ssh usb qr code reader
- i want to copy only the contents of the linux command folder to the current hierarchy
- linux - i get an error when vagrant up
- linux - extract from command result with bash with grep and put log
- linux - i want to solve the error when i brew upgrade, errno::eacces: permission denied @ dir_s_mkdir
- linux - awk command: how to check the number of columns
- bash - i want to solve the error of command not found of gulp in the terminal
Related questions
- i want to access php files under chroot environment via nginx
- linux - convert wav → mp3 with aws ec2 rails carrierwave audio
- linux - i can't kill the process with the kill command
- linux - unable to delete environment variable
- python - about [email protected]
- php - how to find out which directory a user is accessing on linux
- linux - how to describe "pasv_address" in vsftpdconf when starting ec2 instance
- linux - how to describe "pasv_address" in vsftpdconf when starting ec2 instance
- linux - i want to add to the extraction destination directory when extracting tar
- linux - why am i being asked to run fsck when the machine on which the vm resides goes down?
Isn't
/home/ec2-user/.ssh/id_rsa missing or wrong?
Save the EC2 key pair file in the above directory or try using SSH Agent.