You are not logged in.

#1 2010-09-02 19:00:17

market
Member
Registered: 2010-08-24
Posts: 8

wpa_passphrase trouble (both parts SOLVED)

wpa_passphrase won't generate a key if the ESSID has a space in the name.

For example:

wpa_passphrase Namewith Aspace "secretpassphrase" > /etc/wpa_supplicant.conf

It outputs into the file:

Passphrase must be 8..63 characters

I don't have access to change the router's name.
Do I need to insert a special character between the two words or do something else instead?

Last edited by market (2010-09-02 21:46:08)

Offline

#2 2010-09-02 19:23:16

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: wpa_passphrase trouble (both parts SOLVED)

There's two things that should work:

1) Put the ESSID in quotes   - "MY ESSID"
2) Escape the space - MY\ ESSID


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#3 2010-09-02 19:45:58

market
Member
Registered: 2010-08-24
Posts: 8

Re: wpa_passphrase trouble (both parts SOLVED)

Thanks, that worked and will be useful in other terminal problems I've had.
But now I have a new problem when I try to connect.
After I added the settings required for WPA2, I used the following command:

iwconfig wlan0

The ESSID was there but the Access Point was not associated.
And when I tried connecting with:

dhcpcd wlan0

My results are:

dhcpcd: wlan0: waiting for carrier
dhcpcd: wlan0: carrier acquired
dhcpcd: wlan0: carrier lost
dhcpcd: wlan0: waiting for carrier
dhcpcd: wlan0: carrier acquired
dhcpcd: wlan0: carrier lost

It repeats until it times out.

I've been able to connect to the router when there used to be no encryption on my earlier installs so I think my /etc/wpa_supplicant.conf settings are wrong.

network={
          ssid="thessid"
          proto=RSN
          key_mgmt=WPA-PSK
          pairwise=CCMP TKIP
          group=CCMP TKIP
          #psk="thepassword"
          psk=generatedkey
}

I also tried waiting for the association to happen before using the dhcpcd command but it never does.

Last edited by market (2010-09-02 19:48:01)

Offline

#4 2010-09-02 20:15:00

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: wpa_passphrase trouble (both parts SOLVED)

What command are you issuing to make the connection, and what is it returning?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2010-09-02 20:34:33

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: wpa_passphrase trouble (both parts SOLVED)

$ wpa_passphrase 
usage: wpa_passphrase <ssid> [passphrase]

If passphrase is left out, it will be read from stdin

Try what the app suggests smile. If you do it with stdin, you don't need any quotes - single or double - to escape special characters.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2010-09-02 21:45:51

market
Member
Registered: 2010-08-24
Posts: 8

Re: wpa_passphrase trouble (both parts SOLVED)

I had to do something else for a little while and when I booted into the live Arch session again, I performed the same commands (they were the ones exactly from the beginners' guide by the way Sanky) and it worked this time for whatever the reason. Thanks for the help and also to .:B:. for reminding me of the powers of stdin. smile

Offline

Board footer

Powered by FluxBB