Yadda zaka canza tashar SSH a cikin Fedora 23 da yadda zaka yi amfani da bangon bango naka

A cikin Fedora 23 yana yiwuwa a canza tsoho tashar jirgin ruwa ta SSH (22) zuwa wani wanda kuka zaɓa wanda ya fi 1024 girma, kuma akasin haka to zaku iya ma sanya wani tashar don hanyoyin haɗin waje.

Fedora-23

Lokacin da zaku canza tashar SSH a cikin Fedora 23 dole ne muyi la'akari da ƙa'idodi uku

  • Tsarin sanyi na sshd daemon wanda za'a sanya shi zuwa tashar jiragen ruwa.
  • Saitunan Tacewar zaɓi don ta iya ɗaurewa zuwa wannan sabuwar tashar.
  • Kuma saita selinux (idan yana aiki) don saita manufar amfani da wannan tashar.

 

Da kyau to, bari mu ga yadda za a canza tashar jiragen ruwa a cikin tsarin SSH

Mun buɗe tashar kuma a cikin / sauransu / ssh / sshd_config kuma muna yin haka

Muna da damuwa kuma muna sanya wata lamba, kuma muna iya sanya Tashoshi da yawa

don sshd don sauraron tashar jiragen ruwa da yawa>

Port

 

Kirkirar tashoshi da yawa na iya zama da amfani ga gwaji, mun bar tashar ta 22 da wacce muka kirkira, saboda haka zamu iya tabbatar da cewa sabon tashar tana aiki kuma idan sabon tashar bata aiki ko kuma ba'a daidaita ta da kyau ba, zamu iya sake haɗa tashar jiragen ruwa 22.

 

Yanzu don ƙara canjin zuwa selinux

Semanage tashar jiragen ruwa -a -t ssh_port_t -p tcp

 

Yanzu zamu tafi tare da bango

Tace wuta 1

A cikin Fedora 23 ana sarrafa katangar goge da Firewall-cmd.

Idan muna buƙatar ganin yankuna masu aiki:

Firewall-cmd –wallaka-duka

 

To zai dawo da wani abu kamar haka:

FedoraServer (tsoho, mai aiki) musaya: kafofin: ayyuka: mashigai: ladabi: masquerade: gaba-mashigai: icmp-blocks: wadatattun dokoki:

 

Amma idan abin da muke buƙata shine ya gaya mana wane yanki ne, za mu rubuta wannan:

firewall-cmd –ka sami-tsoho-yankin FedoraServer

 

Bayan wannan zamu iya ƙara sabon tashar zuwa bangon wuta

Don ƙara tashar tashar tcp ta tashar wuta ta katangar za mu rubuta wannan layin umarnin:

Firewall-cmd –nannan -zone = –Ad-port = / tcp

 

Dole ne mu tuna cewa idan abin da muke so shine muyi gwaji na ɗan lokaci, zamu bar shi –Dorewa, amma idan na ɗan lokaci ne, bai kamata ka ga canji ba yayin tuntuɓar dokokin Tacewar zaɓi.

hanyar sadarwar Linux

Bari mu bincika idan tashar ta buɗe ta tsohuwa a cikin Firewall tare da wannan umarnin:

Firewall-cmd –query-port = / tcp

 

Idan mun yi shi da kyau kuma idan an bude, zai nuna shi da "eh"

Ana iya amfani da wannan daidaitaccen tsari a mafi yawan nau'ikan sabobin http na Apache.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

4 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   وبسرويس پيامک m

    babban matsayi na godiya don rabawa

  2.   ور دبی m

    godiya ga labarinku mai kyau

  3.   وقت سفارت m

    sosai tanx

  4.   رثقیل سقفی m

    godiya ga raba post…