Cov txheej txheem:

Dab tsi yog khub tseem ceeb hauv ec2?
Dab tsi yog khub tseem ceeb hauv ec2?

Video: Dab tsi yog khub tseem ceeb hauv ec2?

Video: Dab tsi yog khub tseem ceeb hauv ec2?
Video: koj txiv txhob ua ua hluas BY maiv xis xyooj nkauj tawm tshiab 2023 2024, Kaum ib hlis
Anonim

Amazon AWS siv cov yuam sij los encrypt thiab decrypt cov ntaub ntawv nkag mus. Nyob rau theem pib, tus xa khoom siv pej xeem tus yuam sij mus encrypt cov ntaub ntawv, uas nws receiver ces decrypts siv lwm tus kheej tus yuam sij . Ob tug no cov yuam sij , pej xeem thiab ntiag tug, hu ua a khub tseem ceeb . Koj xav tau ib khub tseem ceeb tuaj yeem txuas rau koj qhov xwm txheej.

Yog li, kuv yuav muab tus khub tseem ceeb rau qhov piv txwv ec2 li cas?

Cov kauj ruam:

  1. Tsim tus khub tseem ceeb tshiab los ntawm AWS Console.
  2. Tsim Public key los ntawm cov tshiab tsim tshiab khub (Private Key).
  3. Muab cov yuam sij uas tsim tawm rau pej xeem (los ntawm Kauj Ruam 2) hauv ~/. ssh/authorized_keys ntawm Server.
  4. Rho tawm tus yuam sij uas twb muaj lawm los ntawm ~/.ssh/authorized_keys ntawm Server.
  5. Ua ssh siv tus yuam sij tshiab.

Kuj Paub,. PEM file yog dab tsi? PEM lossis Privacy Enhanced Mail yog Base64 encoded DER daim ntawv pov thawj . PEM daim ntawv pov thawj feem ntau siv rau lub vev xaib servers vim lawv tuaj yeem muab txhais ua cov ntaub ntawv nyeem tau yooj yim siv cov ntawv nyeem yooj yim. Feem ntau thaum a PEM encoded ntaub ntawv qhib rau hauv cov ntawv nyeem, nws muaj cov headers thiab footers txawv heev.

Tsuas yog li ntawd, koj yuav ua li cas tsim ib khub tseem ceeb ntawm AWS?

Txoj Kev 1: Sau cov neeg siv-cov ntaub ntawv

  1. Tsim tus khub tseem ceeb tshiab.
  2. Yog tias koj tsim tus yuam sij ntiag tug hauv Amazon EC2 console, khaws cov yuam sij pej xeem rau tus khub tseem ceeb.
  3. Qhib Amazon EC2 console.
  4. Nres koj qhov piv txwv.
  5. Xaiv Cov Kev Ua, Chaw Chaw, thiab tom qab ntawd xaiv Saib / Hloov Cov Ntaub Ntawv Tus Neeg Siv.

Kuv yuav ua li cas SSH rau hauv ec2 piv txwv?

Txuas rau koj piv txwv siv SSH Hauv qhov rai qhov rai, siv lub ssh txib kom txuas mus rau lub piv txwv . Koj qhia meej tus yuam sij ntiag tug (. pem) cov ntaub ntawv, tus neeg siv lub npe rau koj AMI, thiab lub npe DNS rau pej xeem rau koj piv txwv . Piv txwv li, yog tias koj siv Amazon Linux 2 lossis Amazon Linux AMI, tus neeg siv lub npe yog ec2 ua - neeg siv.

Pom zoo: