Azimout's Linux weblog

Connect to WPA2 wifi from Linux server

leave a comment »

If you have a terminal-only, no-GUI linux server that you need to connect to a WPA2 PSK network, here’s what you need to add to /etc/network/interfaces:

auto wlan0

iface wlan0 inet dhcp

wpa-ssid {myssid}

wpa-psk {mywpapsk}


To calculate your 256-bit WPA PSK from your ASCII passphrase, run the following command:

wpa_passphrase ssid passphrase

Be warned, the result is 32 characters long.


Written by azimout

28/01/2015 at 20:20

Posted in Howto

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: