Cov txheej txheem:

Kuv yuav muab ib tug neeg nkag mus rau kuv ssh li cas?
Kuv yuav muab ib tug neeg nkag mus rau kuv ssh li cas?

Video: Kuv yuav muab ib tug neeg nkag mus rau kuv ssh li cas?

Video: Kuv yuav muab ib tug neeg nkag mus rau kuv ssh li cas?
Video: Mang Vang - Nkag Siab (Official Music Video) New song 2018 - 2019 2024, Hlis ntuj nqeg
Anonim

Ntxiv cov yuam sij rau pej xeem kom tso cai rau tej thaj chaw deb SSH nkag rau tus neeg siv tshiab

  1. Hloov mus rau tus neeg siv tus account tshiab. $ su - newuser.
  2. Tsim.ssh folder hauv home directory. $ mkdir ~/.ssh.
  3. Tsim cov ntawv tso cai_keys nyob rau sab ntawm.ssh nplaub tshev thiab ntxiv cov yuam sij pej xeem. Siv koj cov ntawv nyeem nyiam rau qhov no.
  4. Txheeb xyuas SSH chaw taws teeb nkag.

Ib yam li ntawd, kuv yuav ua li cas SSH rau lwm tus neeg siv?

Rau cov lus qhia ntxaws txog kev siv PuTTY, thov nyeem peb tsab xov xwm ntawm SSH hauv PuTTY (Windows)

  1. Qhib koj tus neeg siv SSH.
  2. Txhawm rau pib qhov kev sib txuas, ntaus: ssh [email tiv thaiv]
  3. Hom: ssh [email tiv thaiv] LOSSIS ssh [email tiv thaiv]
  4. Nco ntsoov tias koj siv koj tus kheej lub npe lossis tus IP chaw nyob.

Ib yam li ntawd, kuv yuav muab ib tug neeg nkag mus rau kuv lub Linux server li cas? 1 Teb

  1. Tsim Tus Account. Thaum tso cai rau ib tus neeg nkag mus rau Linux system koj feem ntau siv cov lus txib useradd.
  2. Tso cai rau Filesystem Permissions. Yog hais tias tus neeg siv yuav ua hauj lwm nrog tej ntaub ntawv nyob rau hauv lub system, ces ntxiv lawv mus rau cov coj pawg raws li cov ntaub ntawv uas lawv yuav ua hauj lwm nrog.
  3. Muab Sudo Permissions.

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav tso cai rau cov neeg siv nkag mus rau SSH li cas?

Txwv qee cov neeg siv nkag mus rau qhov system ntawm SSH server

  1. Kauj ruam # 1: Qhib cov ntaub ntawv sshd_config. # vi /etc/ssh/sshd_config.
  2. Kauj ruam # 2: Ntxiv ib tus neeg siv. Tsuas pub cov neeg siv vivek nkag mus los ntawm kev ntxiv cov kab hauv qab no: AllowUsers vivek.
  3. Kauj ruam # 3: Pib dua sshd. Txuag thiab kaw cov ntaub ntawv. Hauv qhov piv txwv saum toj no, tus neeg siv vivek twb tau tsim nyob rau hauv qhov system. Tam sim no cia li rov pib dua sshd:

Kuv yuav ua li cas lov tes taw kev nkag SSH?

  1. Txhawm rau lov tes taw tus ID nkag mus, qhib lub ntsiab ssh teeb tsa cov ntaub ntawv /etc/ssh/sshd_config nrog koj xaiv tus editor.
  2. Nrhiav cov kab hauv qab no hauv cov ntaub ntawv.
  3. Tshem tawm '#' los ntawm qhov pib ntawm kab.
  4. Tom ntej no, peb yuav tsum rov pib qhov kev pabcuam SSH daemon.
  5. Tam sim no sim nkag mus nrog tus neeg siv hauv paus, koj yuav tau txais "Access Denied" yuam kev.

Pom zoo: