#SSH

บทความทั้งหมดที่ติดแท็กนี้

Webhosting

ลบข้อความต้อนรับ คอนเข้า SSH

sudo truncate -s 0 /etc/motd

Webhosting

วิธีการเปลี่ยนพอร์ต SSH ใน Ubuntu

1. sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak 2. sudo nano /etc/ssh/sshd_config 3.แก้ไข #Port 22 เป็นพอร์ตที่ต้องการเช่น Port 2222 4.ตั้งค่าไฟวอล sudo ufw allow

General

เปลี่ยน SSH Port บน Centos 7

1.แก้ไขไฟล์ sshd config vi /etc/ssh/sshd_config 2.แก้ # ออก Port 2233 3.ติดตั้ง policycoreutils-python yum install policycoreutils-python -y 4.เพิ่ม Port semanage port -a -t ssh_po

Webhosting

เปลี่ยน SSH Port AlmaLinux 8

เปลี่ยน SSH Port AlmaLinux 8 echo "Port 2200" >> /etc/ssh/sshd_config dnf install policycoreutils-python-utils -y semanage port -a -t ssh_port_t -p tcp 2200 กรณีเปิด firewall ต

Software

Change OpenSSH Port On CentOS 8

Change OpenSSH Port On CentOS 8 sudo vi /etc/ssh/sshd_config แก้ไข Port 2299 (เลขพอร์ตที่ต้องการ) sudo yum install policycoreutils-python-utils sudo semanage port -a -t ssh_port_t

Software

Change OpenSSH Port On CentOS 7

Change OpenSSH Port On CentOS 7 sudo vi /etc/ssh/sshd_config แก้ไข Port 2299 (เลขพอร์ตที่ต้องการ) sudo yum -y install policycoreutils-python wget unzip perl-Data-Dumper sudo semana

Software

Clear ssh history on Cenos And Ubuntu.

cat /dev/null > ~/.bash_history && history -c && exit

General

Delete terminal history in Linux

You can clear your bash history like this: cat /dev/null > ~/.bash_history && history -c && exit cat /dev/null > ~/.bash_history erases the content of the ~/.bash_history file.