Otu esi etinye ma jiri Telnet na Debian 11 Bullseye

Telnet bụ protocol na-enye gị ohere ijikọ kọmputa dịpụrụ adịpụ (a na-akpọ ndị ọbịa) n'elu a TCP / IP netwọk na-eji protocol nke ndị ahịa-nkesa iji guzobe njikọ na Protocol njikwa nnyefe ọdụ ụgbọ mmiri nọmba 23

N'ime nkuzi a, ị ga-amụta otu esi etinye Telnet na sistemụ arụmọrụ Debian 11 Bullseye.

Prerequisites

  • OS akwadoro: Nnenna 11 Bullseye
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ihe ùgwù or ohere mgbọrọgwụ (su Command).
  • Ngwungwu achọrọ: 

Na-emelite Sistemụ Ọrụ

Melite gi Debian 11 Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo apt update && sudo apt upgrade

Mgbọrọgwụ ma ọ bụ Sudo Access

Site na ndabara, mgbe ị mepụtara akaụntụ gị na mmalite na Debian ma e jiri ya tụnyere nkesa ndị ọzọ, ọ naghị enweta ọkwa sudoers ozugbo. Ị ga-enwerịrị ike ịnweta ya mgbọrọgwụ paswọọdụ iji iwu su ma ọ bụ gaa na nkuzi nkuzi anyị Otu esi etinye onye ọrụ na Sudoers na Debian.


Advertisement


Ịdọ aka ná ntị

Nkuzi ga-egosi gị otu esi etinye ya Telnet maka ebumnuche akụkọ ihe mere eme na ojiji na gburugburu mpaghara, netwọk ndị dịpụrụ adịpụ. A na-atụ aro ka ị ghara iji Telnet na njikọ netwọk mepere emepe na ịntanetị n'ihi na ezipụ data ahụ na njikọ ahụ, gụnyere ozi nwere mmetụta dị ka okwuntughe na ozi nzuzo ndị ọzọ nke na-adịghị ezoro ezo ka data nwere ike dị mfe onye hacker jidere ma jiri ya mee ihe n'ụzọ na-ezighị ezi. Iji jikọọ na sava dịpụrụ adịpụ na netwọk ọha, ị ga-eji ya mgbe niile SSH (Shell echekwara).

Wụnye ihe nkesa Telnet

Site na ndabara, ebe nchekwa Debian 11 na-abịa na ngwugwu Telnet dị maka ịwụnye site na iji njikwa ngwugwu dabara adaba.

Mbụ, jiri iwu a ka ịwụnye:

sudo apt install telnetd 

Ihe atụ mmepụta:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  openbsd-inetd tcpd
The following NEW packages will be installed:
  openbsd-inetd tcpd telnetd
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 106 kB of archives.
After this operation, 330 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

ụdị "Y," wee pịa "Tinye igodo" ịga n'ihu na nwụnye.

Ozugbo etinyere ya, lelee iji hụ na ọkwa Telnet na-arụ ọrụ nke ọma na ihe ndị a:

sudo systemctl status inetd

Ihe atụ mmepụta:

● inetd.service - Internet superserver
     Loaded: loaded (/lib/systemd/system/inetd.service; enabled; vendor preset:>
     Active: active (running) since Thu 2021-09-30 13:37:35 AWST; 2s ago
       Docs: man:inetd(8)
   Main PID: 16375 (inetd)
      Tasks: 1 (limit: 4626)
     Memory: 576.0K
        CPU: 2ms
     CGroup: /system.slice/inetd.service
             └─16375 /usr/sbin/inetd

Sep 30 13:37:35 debian systemd[1]: Starting Internet superserver...
Sep 30 13:37:35 debian systemd[1]: Started Internet superserver.
lines 1-13

Advertisement


Jikọọ na ihe nkesa Telnet gị

Nhọrọ. Tọọ UFW Iwu

Nke mbu, ọ bụrụ na etinyere UFW iji jikọọ na Telnet gị na-agba ọsọ, ị ga-achọ ịtọlite ​​​​iwu ikike. Site na ndabara, Telnet na-arụ ọrụ ọdụ ụgbọ mmiri 23.

Ka ịtọlite ​​​​iwu ikike ịbanye UFW enwere ike ime ya n'ụzọ dị iche iche. A na-atụ aro nke ukwuu inye ihe IP nke ejikọta ihe nkesa naanị ma ọ bụrụ na na budata njọ na netwọk. Ahapụla ọdụ ụgbọ mmiri 23 na-emeghe ihe niile, na nke a ga-eduga na brute ike mgbalị.

Iwu maka otu IP:

sudo ufw allow from 192.145.50.33 to any port 23

Hapụ site na subnet:

sudo ufw allow from 192.145.50.0/24 to any port 23

Njikọ Ule

Ugbu a ị melitela a UFW iwu ka ị nwee ike ijikọ na sava dịpụrụ adịpụ gị Telnet, jiri ihe ndị a (Telnet) iwu:

telnet 192.168.50.15

Ihe atụ mmepụta:

Otu esi etinye ma jiri Telnet na Debian 11 Bullseye

Wepụ ihe nkesa Telnet

Iwepu Telnet Gbanyụọ sistemụ arụmọrụ Debian gị, naanị ihe ị ga - eme bụ iji iwu a:

sudo apt autoremove telnet --purge

Ihe atụ mmepụta:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  openbsd-inetd tcpd telnetd
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 330 kB disk space will be freed.
Do you want to continue? [Y/n] 

ụdị "Y," wee pịa "Tinye igodo" ịga n'ihu na iwepụ.


Advertisement


Okwu na mmechi

Ị mụtala otu esi etinye ya, guzobe iwu firewall, na jikọọ na sava dịpụrụ adịpụ site na iji Telnet na nkuzi. N'ozuzu, n'ụwa nke oge a, ụdị nkwurịta okwu kachasị dị nchebe nke ọdịdị a bụ iji SSH kama Telnet. Agbanyeghị, gburugburu mmepe nke na-arụ na netwọkụ mpaghara dịpụrụ adịpụ Telnet nwere ike inye aka karịa. N'agbanyeghị nke ahụ, ị ​​​​gaghị agba ọsọ Telnet na netwọk ọha ụbọchị ndị a, ọ ga-emeghekwa ihe nkesa gị ruo a nnukwu ihe ize ndụ n'ime otú ahụ.

Ahapụ a Comment