AWS's Ubuntu Host login user is Ubuntu
Log in only by secret key
If the remote login via SSH on the Linux terminal is as follows:
If you apply for EC2 host download Key name is called My-key.pem, and saved in the local Linux host/home/key below
1. Use the chmod command to ensure that your private key is not publicly visible
chmod /home/key/my-key.pem
2.
ssh -i/home/key/my-key.pem [email protected]
3. The following content appears, direct yes
' xxxxxxxxx ' can't be established. RSA Key fingerprint is was sure you want to continue connecting (yes/no)?
This will connect the remote EC2 host.
Remote copy download via SCP
1. Copying files from the local to the server
SCP -i my-key.pem/home/mag-sit/test.java [email protected]:~
Copy the local Test.java to the remote host Ubuntu user root directory
2. Download from the server
SCP -i my-key.pem [email protected]:/home/ubuntu/test.java/home/ubuntu/
Download the server Test.java to the local directory/home/ubuntu/
AWS EC2 via Linux terminal: Connect to Linux instances using SSH