Difference between revisions of "Raspberry Pi: Wifi"

From RHS Wiki
Jump to navigation Jump to search
Tag: visualeditor
m
Tag: visualeditor
 
Line 1: Line 1:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 +
wpa_passphrase YOUR_SSID YOUR_PASSWORD
 +
</syntaxhighlight><syntaxhighlight lang="bash">
 
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 19:48, 3 June 2021

wpa_passphrase YOUR_SSID YOUR_PASSWORD
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

WPA/WPA2-PSK Network[edit]

 network={
            ssid="myssid"
            psk="mypasskey"
            proto=RSN
            key_mgmt=WPA-PSK
            pairwise=CCMP
            auth_alg=OPEN
    }


WPA2 Enterprise Network TODO: https://eparon.me/2016/09/09/rpi3-enterprise-wifi.html[edit]

network={
        ssid="AU_WiFi"
        # For hidden SSIDs
        scan_ssid=1
        mode=0
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        identity="XXXXXXXX"
        password="XXXXXXXX"
        phase1="peaplabel=0"
        phase2="auth=MSCHAPV2"       
}

Or

 network={
        ssid="Unifi"
        priority=1
        proto=RSN
        key_mgmt=WPA-EAP
        pairwise=CCMP
        auth_alg=OPEN
        eap=PEAP
        identity="Your student ID"
        password=hash:Paste_your_password_hash
        phase1="peaplevel=0"
        phase2="auth=MSCHAPV2"
}



Protect WIFI password[edit]

echo -n 'YOUR_REAL_PASSWORD' | iconv -t utf16le | openssl md4 > hash.txt
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
password=hash:a6fsfs71xxxxxxxxxxxxxxxetcetcetc

history -w
history -c