
SSH login Alert Telegram bot
from https://github.com/vdeville/ssh-login-alert-telegram apt-get -y install git cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-tel..
ยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ ssh
@เครื่อง A
ssh-keygen -t rsa
(มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั่งด้านล่าง เพื่อเตรียมก็อบค่าไว้)
cat /root/.ssh/id_rsa.pub*ควรทำ*แบบดี ๆ หน่อยก็ ssh-keygen -t ed25519 แล้วใส่ passphrase เพื่อกรอกพาสอีกครั้งกันเหนียวเวลา privatekey/putty.ppk หลุด
id_rsa = private key เก็บไว้บน เครื่อง(client)ต้นทาง A
id_rsa.pub = public key ก๊อปไปใส่ เครื่อง(server)ปลายทาง B
@เครื่อง B
vim /root/.ssh/authorized_keysก็อบค่า id_rsa.pub ของเครื่อง A มาใส่(หรือต่อท้ายบรรทัดใหม่ กรณีทำ A หลายเครื่อง)
คราวนี้ลอง ssh จากเครื่อง A -> B โดยไม่ต้องใส่พาสก็ได้แล้วล่ะ
+ล๊อคอินแบบไม่ใช้พาส
vim /etc/ssh/sshd_config
เปลี่ยน #PermitRootLogin yes เป็น PermitRootLogin without-password เพื่อใช้ rsa ด้านบนคอนเฟิร์มแม้จะพิมพ์พาส root ถูก
หรือเปลี่ยน PasswordAuthentication yes เป็น no เพื่อบังคับไม่ให้ใช้ password เดิมๆตั้งแต่ล๊อคอินในการเข้าใช้งาน
ร่วมกับ PubkeyAuthentication yes ก็ใช้พาส passphrase จากตอนเจน privatekey/putty.ppk มายืนยันแทน
หรือจัดเต็ม
PermitRootLogin without-password
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
UsePAM no //เครื่องที่ใช้อยู่ใช้ yes ก็ทำงานได้
service sshd restartrsa with allow ip https://unix.stackexchange.com/a/490120
vim /etc/ssh/sshd_config
AllowUsers root@192.168.1.* admin2@192.168.1.* otherid1
vim /root/.ssh/authorized_keys
from="192.168.1.*,192.168.2.*" ssh-rsa AAAAB3NzaC1yc2EAA........ref: blog.rtsp.us/--9dc83e2aaa90
ref: linuxproblem.org/art_9.html
check ssh login
journalctl -u sshd --since -3d | grep "Accepted password for root"
journalctl -u sshd --since -3d | grep "198.23.148.137"
cat /var/log/auth.log* | grep "Accepted password for"
cat /var/log/secure-* | grep "password changed for"July 11, 2011 / updated: February 18, 2026
Blog | #Command #Linux #Security

from https://github.com/vdeville/ssh-login-alert-telegram apt-get -y install git cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-tel..
#การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu | grep SYN_RECV | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrอันนี้จะบอกว่..
find /home/*/domains/*/public_html/ -maxdepth 2 -type f -name '.htaccess' -print0 | xargs -0 grep -il '(py|exe|php)' find /home/*/domains/*/public_htm..

example error curl -I https://www.google.com/ curl: (60) SSL certificate problem: unable to get local issuer certificate . . ..
วิธีติดตั้ง EA เพื่อให้ MT4 สามารถรันได้นั้น เราต้องมี Expert Advisor (EA) ที่เป็นรูปแบบไฟล์ .ex4 มาก่อน หรือถ้ามีแบบ ea-บลาๆ.mq4 เราก็จะทำการคอมไพล์ ..

มือถือเครื่องที่เสียบซิมเนตเล่นได้ปกติ แต่เน็ตทรูแชร์ฮอตสปอตไม่ได้ ทำให้เครื่องอื่นเล่นเน็ตไม่ได้ ทั้งแชร์เน็ต wifi หรือ usb จากซิมเทพทรูที่ซื้อมา วิธ..