Wpa_supplicant cant connect

Hy!

I try to connect to wifi with wpa_supplicant on raspberry with a TL-WN722N V1
I use the latest parrot on pi.
command:
wpa_supplicant -i wlan1 -c<(wpa_passphrase "name" "pass")

Output

Successfully initialized wpa_supplicant
wlan1: SME: Trying to authenticate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with 60:31:97:33:ad:98
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=60:31:97:33:ad:98 reason=3 locally_generated=1
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: SME: Trying to authenticate with c8:3a:35:fa:eb:a9 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with c8:3a:35:fa:eb:a9 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with c8:3a:35:fa:eb:a9
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=c8:3a:35:fa:eb:a9 reason=3 locally_generated=1
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: SME: Trying to authenticate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with c8:3a:35:fa:e9:b1
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=c8:3a:35:fa:e9:b1 reason=3 locally_generated=1
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: SME: Trying to authenticate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with 60:31:97:33:ad:98
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=60:31:97:33:ad:98 reason=3 locally_generated=1
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: SME: Trying to authenticate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with c8:3a:35:fa:e9:b1
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=c8:3a:35:fa:e9:b1 reason=3 locally_generated=1
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: SME: Trying to authenticate with c8:3a:35:fa:eb:a9 (SSID=‘name’ freq=2437 MHz)
wlan1: SME: Trying to authenticate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with 60:31:97:33:ad:98
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=60:31:97:33:ad:98 reason=3 locally_generated=1
wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“name” auth_failures=1 duration=10 reason=WRONG_KEY
wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“name” auth_failures=2 duration=23 reason=CONN_FAILED
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: CTRL-EVENT-SSID-REENABLED id=0 ssid=“name”
wlan1: SME: Trying to authenticate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with c8:3a:35:fa:e9:b1 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with c8:3a:35:fa:e9:b1
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=c8:3a:35:fa:e9:b1 reason=3 locally_generated=1
wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“name” auth_failures=3 duration=46 reason=CONN_FAILED
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan1: CTRL-EVENT-SSID-REENABLED id=0 ssid=“name”
wlan1: SME: Trying to authenticate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Trying to associate with 60:31:97:33:ad:98 (SSID=‘name’ freq=2437 MHz)
wlan1: Associated with 60:31:97:33:ad:98
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan1: CTRL-EVENT-DISCONNECTED bssid=60:31:97:33:ad:98 reason=3 locally_generated=1
wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“name” auth_failures=4 duration=77 reason=WRONG_KEY
wlan1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD

I see the reason=WRONG_KEY , but it is 100% that i use the right key.
The 2 different mac is because there are one repeater with the same essid.

Is there any way to connect to a WPA2 via terminal?

Thanks!

Download with apt the package “wicd-curses” (there’s also wicd which is the GUI version) and then type in terminal ‘wicd-curses’, it’s CLI network-manager, you will get the hang of it very quickly, it’s the best to me i use it even in X11 session instead of buggy applet manager.

Amazing tool, thanks! I am struggle wit wpa_supplicant and wpa_cli…

parrot for raspberry uses networkmanager already, why don’t you use the nmtui program? it is an ncurses interface for network manager and it works pretty well, because wicd is outdated and no longer maintained as far as i know

1 Like