linux:centos-8:merubah-port-ssh-di-centos-8
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | linux:centos-8:merubah-port-ssh-di-centos-8 [2022/06/15 02:50] (current) – created kbadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Merubah Port ssh di centos 8 ====== | ||
+ | Bagaimana cara merubah port ssh dari 22 ke port lain di centos 8, berikut ini adalah tutorialnya . | ||
+ | Pertama anda perlu install semanage | ||
+ | < | ||
+ | yum install -y policycoreutils-python-utils | ||
+ | </ | ||
+ | |||
+ | kemudian lanjut dengan kita test melihat port yang ada | ||
+ | < | ||
+ | [root@host]# | ||
+ | ssh_port_t | ||
+ | </ | ||
+ | |||
+ | menambahkan port baru | ||
+ | < | ||
+ | semanage port -a -t ssh_port_t -p tcp 5522 | ||
+ | </ | ||
+ | lihat kembali | ||
+ | < | ||
+ | [root@host]# | ||
+ | ssh_port_t | ||
+ | </ | ||
+ | |||
+ | kemudian merubah setting sshd_config dengan port 5522 tsb | ||
+ | dan restart sshd | ||
+ | |||
+ | Selesai | ||
+ | |||
+ | <nspages linux: |
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/centos-8/merubah-port-ssh-di-centos-8.txt · Last modified: 2022/06/15 02:50 by kbadmin