Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-07-2009, 04:26 PM
|
#1
|
LQ Newbie
Registered: Jul 2008
Posts: 26
Rep:
|
WPA Supplicant (cannot connect to wpa supplicant - retrying)
Hi guys,
my previous post mentioned the failure in connecting to encrypted networks. After googling around, I found out that wpa supplicant was the problem.
Unfortunately, whenever I tried starting wpa_cli, this pops up.
"Could not connect to wpa_supplicant - re-trying"
I'm using Hardy Heron (Ubuntu), 2.6.24-19, Gnome 2.22.3, Broadcom Corporation BCM4312 802.11b/g.
Any help would be appreciated here.
Thanks.
|
|
|
09-09-2009, 07:06 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068
|
wpa_supplicant exits at once unless it's being used. There is some option to make it wait. have you set up wpa_supplicant.conf? See also man wpa_passphrase
Try to get this stuff into the init scripts and working.
|
|
|
09-09-2009, 10:47 AM
|
#3
|
LQ Newbie
Registered: Jul 2008
Posts: 26
Original Poster
Rep:
|
Hi business_kid,
I hate to sound dumb.. well, okay, I actually do sound dumb. But I actually do have a wpa_supplicant.conf (which I created on my own, because for some odd reason I didn't have one).
it went like this:
ap_scan=2
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="MyESSID"
scan_ssid=1 # only needed if your access point uses a hidden ssid
proto=WPA
key_mgmt=WPA-PSK
psk="seeminglyrandomseriesofnumbers"
pairwise=TKIP
group=TKIP
}
Is there something wrong with this file (or rather, did I type anything wrong in this file?)
And erm, how do I get this into the init. files?
Thanks a ton.
Last edited by r11_kaede; 09-09-2009 at 10:50 AM.
|
|
|
09-10-2009, 04:51 AM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068
|
Quote:
Originally Posted by r11_kaede
Hi business_kid,
I hate to sound dumb.. well, okay, I actually do sound dumb. But I actually do have a wpa_supplicant.conf (which I created on my own, because for some odd reason I didn't have one).
it went like this:
ap_scan=2
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="MyESSID"
scan_ssid=1 # only needed if your access point uses a hidden ssid
proto=WPA
key_mgmt=WPA-PSK
psk="seeminglyrandomseriesofnumbers"
pairwise=TKIP
group=TKIP
}
Is there something wrong with this file (or rather, did I type anything wrong in this file?)
|
I have
pairwise=CCMP TGKIP
group=CCMP TKIP WEP104 WEP40
aND you left out one step. wpa_passphrase gives you the number you _really_want_. Open wpa_supplicant fior editing, and in another terminal type this
wpa_passhrase MyESSID seeminglyrandomseriesofnumbers
bash-3.1$ wpa_passphrase MyESSID seeminglyrandomseriesofnumbers
network={
ssid="MyESSID"
#psk="seeminglyrandomseriesofnumbers"
psk=8e83d5dcf3df474cb1000c9efa5dd6dc184ac6e0ce9e9bcc660b7aaf22ec5894
}
THAT is the psk you want. The original set is there for reference only. Don't ask me why. . .
|
|
|
09-11-2009, 08:15 AM
|
#5
|
LQ Newbie
Registered: Jul 2008
Posts: 26
Original Poster
Rep:
|
okay, so if im reading you rightly, I need to run the commands as such.
1) wpa_passphrase MyEssid "initial password"
2) wpa_passphrase MyEssid "random numbers generated from above"
3) wpa_passphrase MyEssid "random numbers generated from step2"
But I get this in return, "Passphrase must be 8..63 characters"
"pulls hair"
|
|
|
09-12-2009, 04:22 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068
|
I ran into that too. The essid and password are used to generate the longer number. Simply lop a few digits off your password (seemingly_random_numbers) and try again.
|
|
|
09-13-2009, 05:02 AM
|
#7
|
LQ Newbie
Registered: Jul 2008
Posts: 26
Original Poster
Rep:
|
Will try it after upgrading to Jaunty (as per other thread).
Thanks a lot.
|
|
|
09-14-2009, 04:46 AM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068
|
Why did you post 2 threads about the same problem?
The answers to the same problem should converge in any case.
|
|
|
All times are GMT -5. The time now is 01:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|