connect to hidden wifi network

1 – Create the authentication file

wpa_passphrase wifiName passwdHere > /etc/wpa_supplicant/wifiName.conf

2 – Edit the authentication file as bellow:

vi /etc/wpa_supplicant/wifiName.conf

network={
        ssid="wifiName"
        #psk="passwdHere"
        psk=f867e1d63e4909d8c9e28bfcfe8569877996d0
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
}

3 – Configure the machine to automatic connect to wifi network

vi /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wifiName.conf

4 – Restart the network interface

/etc/init.d/networking restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s