Difference between revisions of "Iwconfig: akses dengan wpa"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==Lakukan rfkill== | ==Lakukan rfkill== | ||
− | apt install rfkill | + | apt -y install rfkill |
rfkill list | rfkill list | ||
pastikan tidak ada interface wifi yang di block | pastikan tidak ada interface wifi yang di block | ||
− | sudo systemctl stop NetworkManager | + | # sudo systemctl stop NetworkManager |
− | |||
==Cek WiFi== | ==Cek WiFi== | ||
Line 29: | Line 28: | ||
==Set wpa_supplicant== | ==Set wpa_supplicant== | ||
− | sudo apt install wpasupplicant | + | sudo apt -y install wpasupplicant |
wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf | wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf | ||
Line 43: | Line 42: | ||
Ini akan connect, dan akan request IP address | Ini akan connect, dan akan request IP address | ||
+ | sudo iwconfig wlp2s0 essid diamankan key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp2s0 | sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp2s0 | ||
sudo dhclient wlp2s0 | sudo dhclient wlp2s0 | ||
− | |||
− | |||
− | |||
− | |||
==Referensi== | ==Referensi== | ||
* https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant | * https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant |
Latest revision as of 10:44, 2 January 2021
Sumber: https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant
Lakukan rfkill
apt -y install rfkill rfkill list
pastikan tidak ada interface wifi yang di block
# sudo systemctl stop NetworkManager
Cek WiFi
iwconfig
Jika di perlukan untuk up
sudo ifconfig wlp2s0 up
Scan
sudo iwlist wlp2s0 scan | grep ESSID sudo iwlist wlp2s0 scan
Set wpa_supplicant
sudo apt -y install wpasupplicant
wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf wpa_passphrase diamankan 1234567890 | sudo tee /etc/wpa_supplicant.conf
Connect
Ini akan connect, tapi tidak dapat IP address
sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp2s0
Ini akan connect, dan akan request IP address
sudo iwconfig wlp2s0 essid diamankan key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp2s0 sudo dhclient wlp2s0