Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

วิธีหา Network Security Key บนคอมพิวเตอร์ (Windows/Mac/Linux)

Network Security Key บนคอมพิวเตอร์คืออะไร?

Network Security Key คือรหัสผ่าน Wi-Fi ที่คอมพิวเตอร์ใช้เชื่อมต่อกับ Router/Access Point บนระบบปฏิบัติการต่างๆ จะมีวิธีดูที่ต่างกัน

Windows 10 / 11

วิธีที่ 1: ผ่าน Settings (ง่ายที่สุด)

  1. Win + I > Network & Internet > Wi-Fi
  2. คลิก Hardware properties หรือ Manage known networks
  3. เลือกเครือข่าย > View (หรือ Properties)
  4. ดูที่ Network security key / Password

วิธีที่ 2: ผ่าน Control Panel (คลาสสิก)

  1. Control Panel > Network and Sharing Center
  2. คลิกชื่อเครือข่าย Wi-Fi (ข้าง Connections)
  3. Wireless Properties > แท็บ Security
  4. ติ๊ก Show characters

วิธีที่ 3: Command Prompt (CMD) / PowerShell

# CMD (Run as Administrator)
netsh wlan show profiles
netsh wlan show profile name="WIFI_NAME" key=clear

# PowerShell
netsh wlan show profiles
netsh wlan show profile name="WIFI_NAME" key=clear

ดูที่ Key Content = รหัสผ่าน

Windows 7

  1. Control Panel > Network and Sharing Center
  2. Manage wireless networks (ด้านซ้าย)
  3. คลิกขวาเครือข่าย > Properties > แท็บ Security
  4. ติ๊ก Show characters

macOS

วิธีที่ 1: Keychain Access (GUI)

  1. เปิด Keychain Access (Cmd + Space พิมพ์ Keychain)
  2. ด้านซ้าย: System หรือ iCloud > Category: Passwords
  3. ค้นหาชื่อ Wi-Fi (SSID)
  4. ดับเบิลคลิก > ติ๊ก Show password
  5. ใส่รหัสผ่าน Mac (Admin) > จะเห็นรหัสผ่าน Wi-Fi

วิธีที่ 2: Terminal

security find-generic-password -ga "WIFI_NAME" -w
# หรือ
security find-generic-password -wa "WIFI_NAME"

Linux (Ubuntu, Fedora, Debian, Arch)

NetworkManager (GUI/CLI)

# ดูไฟล์การตั้งค่าที่เก็บไว้ (ต้อง sudo)
sudo cat /etc/NetworkManager/system-connections/WIFI_NAME.nmconnection

# หรือใช้ nmcli
nmcli -s -g 802-11-wireless-security.psk connection show "WIFI_NAME"

หาในส่วน [802-11-wireless-security] > psk= รหัสผ่าน

wpa_supplicant (หากไม่ใช้ NetworkManager)

sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
# ดู psk="password"

ลืมรหัสผ่าน Wi-Fi ทำไงดี?

  1. ดูสติ๊กเกอร์ Router: ใช้ Default Password
  2. เข้า Router Web UI: 192.168.1.1 ดู/เปลี่ยนใน Wireless Settings
  3. Reset Router: กดปุ่ม Reset 10-15 วินาที (ล้างค่าทั้งหมด)
  4. ถาม Admin/ISP: หากเป็นเครือข่ายบริษัท/องค์กร

สรุปตารางคำสั่งดูรหัสผ่านเร็วๆ

OSคำสั่ง/เมนูหลัก
Windows 10/11Settings > Wi-Fi > Hardware properties / netsh wlan show profile name="SSID" key=clear
Windows 7Control Panel > Manage wireless networks > Properties > Security
macOSKeychain Access > Show password / security find-generic-password -wa "SSID"
Linux (NM)sudo cat /etc/NetworkManager/system-connections/SSID.nmconnection / nmcli -s -g 802-11-wireless-security.psk connection show "SSID"

ข้อควรจำ

  • Network Security Key = Wi-Fi Password = WPA Key = Passphrase
  • ต้องมีสิทธิ์ Admin/Root เพื่อดูรหัสผ่านที่บันทึกในระบบ
  • ควรใช้ Password Manager แทนการมองหาทุกครั้ง
  • เปลี่ยนรหัสผ่านเป็นระยะ ใช้ WPA2/WPA3