View Single Post
  #3   (View Single Post)  
Old 22nd September 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

The SSID you describe has spaces in it. Spaces are used as delimiters between the SSID and the passphrase.

You must either use a backslash escape character in front of the spaces, or put your SSID inside quotes.

examples:

# wpa-wsk 'Main Street Java' lemonade
# wpa-wsk Main\ Street\ Java lemonade

The output from these is a string of hexadecimal characters already preceded by 0x.

You can either use the output string in an ifconfig with copy/paste, or, you can combine wpa-wsk with ifconfig in a single command, as plainly described in the ifconfig(8) man page:
Quote:
ifconfig wpi0 nwid my_net wpa wpapsk \
`wpa-psk my_net my_passphrase`
Note the backtick characters used to pipe the output of wpa-psk into ifconfig
Reply With Quote