AWS EC2 via Linux terminal: Connect to Linux instances using SSH

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.