cannot connect to wifi ubuntu server

I have followed 1

to try and connect but when I enter my password:

sudo iwconfig wlan0 key pizza1121

I receive the error:

Error for wireless request "Set Encode" (8B2A)
    Invalid argument "pizza1121".

Can someone please help me?! This has messed me up for a while…

Answer

From the man page:

You can also enter the key as an ASCII string by using the s: prefix.

Attribution
Source : Link , Question Author : rgbc , Answer Author : Jenny D

Leave a Comment