Cov txheej txheem:

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

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

Video: Kuv yuav ua li cas SSH rau hauv ec2 piv txwv?
Video: Tupao Xiong & Nhia Chang - Kuv Tsis Paub Yuav Ua Li Cas (Original) 2024, Kaum ib hlis
Anonim

Txhawm rau txuas los ntawm Amazon EC2 console

  1. Qhib Amazon EC 2 lub console.
  2. Hauv sab laug navigation pane, xaiv Piv txwv thiab xaiv cov piv rau uas rau txuas.
  3. Xaiv Txuas.
  4. Ntawm qhov txuas Rau Koj Piv txwv nplooj, xaiv EC2 Instance Txuas (raws li browser SSH kev sib txuas), Txuas.

Hauv qhov no, kuv yuav ua li cas SSH rau hauv ec2 piv txwv hauv PuTTY?

PART 1: SSH rau hauv EC2 piv txwv los ntawm qhov rais siv PUTTY

  1. DOWNLOAD & Nruab PuTTY.
  2. DOWNLOAD koj cov ntaub ntawv EC2 KEY PAR.
  3. Hloov koj cov ntaub ntawv PEM rau PPK FORMAT.
  4. ENTER HOST NPE.
  5. Xaiv koj cov ntaub ntawv PPK.
  6. Qhib koj qhov TERMINAL SESSION.
  7. Siv PuTTYGEN los tsim cov ntaub ntawv PPK ntiag tug.
  8. Qhib PAGEANT UTILITY uas yog ib feem ntawm lub pob Putty.

Ib tug kuj yuav nug, Kuv yuav hloov cov ntaub ntawv li cas rau ec2 piv txwv? Rau luam cov ntaub ntawv nruab nrab ntawm koj lub computer thiab koj piv txwv koj tuaj yeem siv qhov kev pabcuam FTP zoo li FileZilla lossis cov lus txib scp uas sawv cev rau daim ntawv ruaj ntseg. Txhawm rau siv scp nrog tus khub tseem ceeb siv cov lus txib hauv qab no: scp -i path/to/key ntaub ntawv /to/copy [email tiv thaiv] ec2 ua -xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/ ntaub ntawv.

Hauv qhov no, kuv yuav ua li cas rau SSH rau AWS ec2 piv txwv Mac?

Txuas mus rau ib qho EC2 Instance siv SSH hauv tus AWS EC2 Management Console, nyem ntawm Instances hauv sab laug zaub mov (1) hauv qab EC 2 Dashboard. Nyem ntawm khawm Txuas (2) qhib qhov Txuas Rau Koj Piv txwv qhov rai. Koj yuav luam thiab muab cov ntaub ntawv los ntawm lub qhov rais no rau koj Mac Terminal qhov rai tom qab.

Kuv yuav nkag mus rau kuv tus ec2 piv txwv username thiab password li cas?

Password Authentication For AWS ec2

  1. Kauj ruam 1: Nkag mus rau tus neeg rau zaub mov siv ssh tus neeg siv ntawm koj xaiv siv tus yuam sij ntiag tug.
  2. Kauj ruam 2: Qhib cov ntaub ntawv sshd_config.
  3. Kauj ruam 3: Nrhiav cov kab uas muaj "PasswordAuthentication" parameter thiab hloov nws tus nqi ntawm "tsis yog" mus rau "yog"
  4. Kauj ruam 4: Teeb tus password rau tus neeg siv siv "passwd" hais kom ua nrog rau tus neeg siv lub npe.

Pom zoo: