Debian WIFI WPA Configuration

2017/11/18

Reference

限制配置文件权限,防止PSK泄露:
chmod 0600 /etc/network/interfaces
用WPA passphrase(wifi密码)来计算WPA PSK Hash值
wpa_passphrase myssid my_very_secret_passphrase
会给出下列输出:

network={
        ssid="myssid"
        #psk="my_very_secret_passphrase"
        psk=ccb290fd4fe6b22935cbae31449e050edd02ad44627b16ce0151668f5f53c01b
}

复制psk=后面的Hash并放入配置文件:
nano /etc/network/interfaces
制定恰当的规则并输入SSID和PSK

auto wlan0 #开机自动启动网卡
iface wlan0 inet dhcp
        wpa-ssid myssid
        wpa-psk ccb290fd4fe6b22935cbae31449e050edd02ad44627b16ce0151668f5f53c01b

保存文件后重启网卡
ifup wlan0

你可能感兴趣的:(Debian WIFI WPA Configuration)