User Tools

Site Tools


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

This is an old revision of the document!


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

Layanan

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki