Ha e khone ho hokela Vultr VPS SSH? Mokhoa oa ho seta oa senotlolo sa PuTTY

Ha e khone ho hokela Vultr VPS SSH?

Mokhoa oa ho theha senotlolo sa PuTTY

Kaha basebelisi ba bangata ba inthanete ba Machaena ba sebelisa Vultr VPS ho theha liteishene tsa " phihlello ea inthanete ea saense ", palo e kholo ea liaterese tsa IP tsa Vultr e thibetsoe ...

Fumana aterese ea IP

Pele ho tsohle, o tlameha ho netefatsa hore o thehile aterese ea IP ea Vultr. Na u ka e fumana naheng ea China joalo ka mehleng?

Tharollo:

  • Sebelisa sesebelisoa sa ping sa inthaneteng ho fumana liaterese tsa IP ▼
Tobetsa mona ho fihlella li-server tse ngata tsa ping tsa sebaka

Ke lokela ho etsa eng haeba aterese ea ka ea Vultr IP e koetsoe naheng ea China?

  • Ka kopo, sheba sengoloa sena bakeng sa tharollo ▼

Ho kena ha senotlolo sa SSH

Ha VPS e ntse e pepesetsoa marang-rang, motho e mong o tla tsoelapele ho qobella password ea hau ea SSH ho kena.

Kahoo hoa hlokahala ho kena ka linotlolo tsa SSH, le ho tima ho kena ha password.

Sebelisa taelo e latelang ho sheba batho ba bang ba kenang ka matla bakeng sa password ea hau ea SSH:

grep "Failed password for invalid user" /var/log/secure | awk '{print $13}' | sort | uniq -c | sort -nr | more

Bakeng sa VPS ea rona e rekiloeng, qobella ka makhetlo a likete!U ka ea bona hore na u 'nile ua qobelloa ka sehlōhō hakae.

Tharollo:

  • Fetola mokhoa oa ho kena oa senotlolo sa SSH ho mokhoa oa ho kena oa senotlolo sa SSH

Ho hlahisa senotlolo sa SSH

Haeba o sebedisa sistimi ya Windows, o tla hloka ho sebedisa software ya puttygen ho hlahisa para ya senotlolo.

Mekhoa ea Linux le ea macOS ka bobeli e ka sebetsa ka kotloloho ho tsoa ho terminal:

Mohato oa 1: Hlahisa senotlolo sa SSH

Ka kopo, tsamaisa taelo ena ▼

ssh-keygen -t rsa -b 4096

Mohato oa 2: Kenya sebaka sa faele ho boloka senotlolo.

Enter file in which to save the key (/root/.ssh/id_rsa): 
  • Ka kopo, tobetsa Enter

Mohato oa 3: U tla kopuoa ho kenya phasewete.

Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
  • Kenya phasewete, kapa o ka tobetsa feela Enter ebe o e tlohela e se na letho.

Qetellong u tla bona molaetsa oa hore linotlolo tsa hau tsa lekunutu le tsa sechaba li bolokiloe moo:

Your identification has been saved in /root/.ssh/id_rsa. <== 私钥 

Your public key has been saved in /root/.ssh/id_rsa.pub. <== 公钥

Vultr VPS Lokisa SSH

Ha Vultr e theha VPS, o ka theha SSH senotlolo sa ho kena.

Haeba u thehile VPS empa u so ka u theha linotlolo tsa SSH ...

Ka kopo latela mehato e ka tlase kamora ho sebelisa "SSH key generation" e kaholimo ho Linux:

Likhahlelo tsa 1:tla id_rsa.pub Kenya ka hare /root/.ssh directory ebe u e reha lebitso hape ho authorized_keys

mohato oa 2:fetola /etc/ssh/sshd_config faele ea tlhophiso

RSAAuthentication yes #RSA认证
PubkeyAuthentication yes #开启公钥验证
AuthorizedKeysFile .ssh/authorized_keys #验证文件路径
PasswordAuthentication no #禁止密码认证
PermitEmptyPasswords no #禁止空密码

Mohato oa 3: Qala tšebeletso ea SSH hape

  • Lilemo7 Sebelisa taelo ena:systemctl restart sshd
  • Centos6 sebelisa taelo:/etc/init.d/sshd restart

PuTTY e hlahisa linotlolo

Haeba u sebelisa sistimi ea Windows ho kena VPS, u tla hloka ho khoasolla senotlolo sa lekunutu ho moreki ebe u se fetolela ho sebopeho se sebelisoang ke PuTTY.

  • Ha u na software ea PuTTY e kentsoeng komporong ea hau?Ka kopo, batla ka Google kapa Baidu: Khoasolla PuTTY.

Mohato oa 1: Sebelisa WinSCP, SFTP, kapa lisebelisoa tse ling ho khoasolla faele ea senotlolo sa poraefete id_rsa ho mochini oa moreki.

Mohato oa 2: Bula PuTTYGen.exe

Mohato oa 3: Tobetsa konopo ea ho Jara ho Liketso ▼

Ha e khone ho hokela Vultr VPS SSH? Mokhoa oa ho seta oa senotlolo sa PuTTY

Mohato oa 4: Kenya faele ea senotlolo sa poraefete seo u sa tsoa se jarolla

Khetha "Lifaele tsohle" ho kenya faele ea senotlolo sa poraefete eo u sa tsoa e jarolla.

Ha u khone ho hlahisa faele ea senotlolo sa lekunutu?Ka kopo, khetha "Lifaele tsohle (*.*)" ▲

  • Haeba u sa tsoa beha senotlolo sa senotlolo, u lokela ho kenya phasewete ka nako ena.
  • Kamora mojaro o atlehileng, PuTTYGen e tla bonts'a tlhahisoleseling e amanang le senotlolo.

Mohato oa 5: Tobetsa konopo ea "Boloka senotlolo sa poraefete" ho boloka faele ea senotlolo sa poraefete e lumellanang le PuTTY. ▼

Tobetsa "Boloka senotlolo sa poraefete" ho boloka faele ea senotlolo sa poraefete e lumellanang le PuTTY.

Mokhoa oa ho theha Putty?

Mehato e latelang ke ea ho seta PuTTY ho kena ho seva ea Linux u sebelisa senotlolo sa poraefete:

Mohato oa 1: Putty → Session: Kenya Lebitso la Moamoheli (kapa Aterese ea IP)

Mohato oa 2: Putty → Khokahano → Letsatsi: Kenya "root" tšimong ea lebitso la mosebelisi la ho kena ka bohona.

Mohato oa 3: PuTTY → Khokahano → SSH → Auth: Faeleng ea senotlolo sa poraefete bakeng sa netefatso, khetha faele ea senotlolo sa poraefete e hlahisitsoeng ke PuTTYGen pejana. ▼

Khetha faele ea senotlolo sa poraefete sa netefatso faeleng ea senotlolo sa poraefete bakeng sa netefatso. 

Mohato oa 4: Khutlela ho PuTTY → Session: Session e Bolokiloeng, kenya lebitso 'me u le boloke. Kamora moo, u ka kena ka ho toba ka ho tobetsa lebitso habeli.

Mohato oa 5: Joale u tla khona ho kena ho Linux ntle le phasewete. Ka kopo hopola ho boloka faele ea hau ea senotlolo sa lekunutu.

Ho fumana sesebelisoa sa lisebelisoa tsa Linux tse hole ho mehala ea cellular ea Android, ka kopo, tobetsa sehokelo sena ho sheba ▼

Palo e atolositsoeng:

Comments

您的邮箱地址不会被公开。必填项已用*标注

Scroll ho Top