Nika amandla ukufinyelela kwe-SSH ngembobo engaphezu kweyodwa

Ngichazile esikhathini esithile esidlule ungayimisa kanjani insizakalo ye-SSH ukuze isebenze echwebeni elihlukile kune-22, okuyitheku elizenzakalelayo. Inhloso yalokhu ukuthi wonke ama-bots, ukuhlasela okuhlasela i-SSH ngokuzenzakalela ku-port 22 (engikuphindayo, kungokwakhona), ngakho-ke ngokushintsha itheku sizothola ukuphepha okwengeziwe.

Kepha yini okufanele ngiyenze uma ngifuna ukumisa i-SSH ngenye ichweba KODWA ngigcine i-SSH nayo ku-port 22? Lokho wukuthi, kunesidingo sokuthi iseva ibe ne-SSH echwebeni elingaphezu kwelilodwa, yisho isibonelo ku-22 naku-9122

Ukuze senze lokhu siguqula ifayela lokumiswa le-daemon ye-SSH:

Imiyalo elandelayo kufanele yenziwe ngamalungelo okuphatha, kungaba ngumsebenzisi wezimpande noma kusetshenziswe umyalo weSudo ngaphambi kwemiyalo

nano /etc/ssh/sshd_config

Lapho sizobona into enjengale:

sshd_config_default

Uzobona ukuthi kulayini 5 kunokuthile okusho ukuthi: "iPort 22", kuhle, kufanele nje siphinde lowo mugqa ongezansi bese sishintsha inombolo yetheku. Ngamanye amagama, ukuze insizakalo yethu ye-SSH futhi isebenzele i-9122 kufanele siyishiye kanjena:

sshd_config_mod

Ngemuva kwalokho kufanele siqale kabusha insiza:

service ssh restart

Uma basebenzisa i-Arch kungaba:

systemctl restart sshd

Lapho ufuna ukuxhuma ngetheku ngaphandle kokukhumbula okungama-22, kufanele ungeze -p $ PORT kulayini wokuxhuma, into enjengale:

ssh usuario@servidor -p 9122

Ngendlela, ngincoma ukuthi ubheke ifayela le-sshd_config kusuka ngaphambili, kunezinketho ezithile ezithakazelisa kakhulu 😉

Phendula ngokucaphuna


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-9, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   URodrigo Pichiñual kusho

    Amathiphu amahle wokushintsha imbobo ezenzakalelayo ye-ssh ... ukuvimbela ukuhlaselwa ethekwini 22.

    Ngicabanga ukuthi kufanele kushiywe ichweba elilodwa kuphela ... futhi lokhu kufanele kwehluke kuma-22 ukuze ukuhlaselwa kungabi namthelela.

    imikhonzo

    1.    KZKG ^ Gaara kusho

      Siyabonga ngokufunda 🙂

  2.   isihlibhi kusho

    Engikutholile kwakamuva kube:

    Imvume yeRootLogin no
    y
    Vumela Abasebenzisi uJohn jack chester…. njll

    Ngalokhu nginciphisa ngokwanele amathuba wokuqhekeka, uma ungeza ama-iptables amahle ...

    1.    KZKG ^ Gaara kusho

      Eqinisweni, ngincamela ukusebenzisa iPortKnocking 😀

  3.   hlabo0 kusho

    Njengenjwayelo i-KZKG ^ Gaara, imibhalo yenu emihle kakhulu nge-SSH. Ngemikhombandlela yakho silahlekelwa ukwesaba UKUPHELA

    1.    KZKG ^ Gaara kusho

      Siyabonga 🙂

  4.   UNebukadinesari kusho

    OOOOOOOOhhhh !!!!

  5.   frederico kusho

    I-athikili enhle kakhulu, yasendle !!!

  6.   Chris kusho

    Ngaphandle kokushintsha inombolo yetheku, ukunqanda umkhawulo ongakhetha kwabahlaseli kuyanconywa futhi ukukhubaza ukungena ngemvume nge-USER: PASS

    IphasiwediUkuqinisekisa cha

    futhi usebenzise ukuqinisekiswa kokhiye wangasese / womphakathi.

    Okuthunyelwe okuhle.

    Salu2