User Tools

Site Tools


linux:centos7:membuka-ssh-pada-port-lain-di-centos-7

Cara Membuka SSH Port Lain di Centos 7

Bagaimana cara membuka ssh port dengan port lain di sistem operasi centos 7? yang perlu anda lakukan adalah menambahkan port pada firewall-cmd dan berikut ini adalah tutorialnya.

firewall-cmd --add-port=3456/tcp --permanent
firewall-cmd --reload
systemctl restart sshd

Jika ada error seperti ini

Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.

kemudian

journalctl -xe

Sep 16 08:21:12 server1 sshd[1074]: error: Bind to port 6378 on 0.0.0.0 failed: Permission denied. </code> jalankan ini

semanage port -a -t ssh_port_t -p tcp 3456
semanage port -l | grep ssh
yum install -y policycoreutils-python

Demikian semoga berhasil.

Sumber : https://kifarunix.com/how-to-configure-ssh-to-use-a-different-port-on-centos-7/#:~:text=Login%20to%20your%20server%20and,it%20to%20a%20desired%20port.

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/centos7/membuka-ssh-pada-port-lain-di-centos-7.txt · Last modified: 2020/10/02 21:31 by kbadmin