can not connect to wpa/wpa2 after i purged network-manager [SOLVED]

Started by nanayaw, August 30, 2013, 05:27:59 PM

Previous topic - Next topic

nanayaw

can anyone help me after i took of network-manager for obvious reasons don't ask why  . I have wpa_supplicant that came with backbox and I 'm trying to use [user:blac:# iw dev wlan0 connect -w "Essid-foo"]
and I get this error wlan0 (phy #0): failed to connect, status: 1: Unspecified failure. Running iw event -t and i think its not able to authenticate me at the router end.. Please is there a way i can connect to my access point

Thanks in advance

weVeg

Hi nanayaw, I didn't use wpa_supplicant about few years but reading the help you should running:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

Where wpa_supplicant.conf should be written in this way for your cipher:

1. WPA-Personal (PSK) as home network and WPA-Enterprise with EAP-TLS as work network.


         # allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' group
         ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
         #
         # home network; allow all valid ciphers
         network={
              ssid="home"
              scan_ssid=1
              key_mgmt=WPA-PSK
              psk="very secret passphrase"
         }
         #
         # work network; use EAP-TLS with WPA; allow only CCMP and TKIP ciphers
         network={
              ssid="work"
              scan_ssid=1
              key_mgmt=WPA-EAP
              pairwise=CCMP TKIP
              group=CCMP TKIP
              eap=TLS
              identity="user@example.com"
              ca_cert="/etc/cert/ca.pem"
              client_cert="/etc/cert/user.pem"
              private_key="/etc/cert/user.prv"
              private_key_passwd="password"
         }

btw reading the man you should be able to connect to your network. I hope that can help you, I have net-manager and I don't remember exactly the step, also you can wait someone else! =)
See you!!
una voce libera è sempre liberatrice
under_r00t

nanayaw

This is great.. you are a Saint.. I have seen other code but this will work for me.. And guys I 'm still open..

weVeg

una voce libera è sempre liberatrice
under_r00t