Quote:
Originally Posted by jggimi
WPA pre-shared key mode uses a 256-bit key. This key is either represented as a string of 64 Hexidecimal digits (and by convention, on Unix-like system they are represented beginning with 0x, such as 0xb7d130....), or as an 8 to 63-byte printable ASCII passphrase, such as "this is my passphrase" or MySecretKey or as you tried to use, 123456790.
If an ASCII passphrase is used, it is transformed into a 256-bit key via a cryptographic hash, using the SSID as a salt to 4096 iterations of HMAC-SHA1.
This transformation is the job of wpa_supplicant, if it finds an ASCII passphrase. You need not do this yourself. Just set psk="1234567890" in /etc/wpa_supplicant.conf if that is your ASCII passphrase.
|
Tnx @jggimi @ldOp
works ok!
wpa_passphrase I have not used because it creates a problem.
I wrote a file, wpa_supplicant.conf manually. I make a brief summary:
vi /etc/rc.conf
Quote:
...
wpa_supplicant=YES
wpa_supplicant_flags="-B -i ath0 -c /etc/wpa_supplicant.conf"
sshd=YES
wscons=YES
...
|
vi /etc/wpa_supplicant.conf
Quote:
network={
ssid="BSD"
scan_ssid=1
key_mgmt=WPA-PSK
psk="1234567890"
}
|
mistakenly wrote
psk=1234567890...without the quotes..
I recommend, use the "" and don't use a wpa_passphrase
vi /etc/ifconfig.ath0
Quote:
inet 192.168.1.200 netmask 255.255.255.0
!route add default 192.168.1.254
|
ifconfig ath0