How do I connect to a WPA wifi network using the command line?

The command ifconfig wlan0 does not turn on your wireless card. It gives you information about your wlan0. To turn on your wireless card, you would enter ifconfig wlan0 up. Although, it’s not always wlan0. To find out the name of your wireless card, type iwconfig, and look at the row that has some information in it, not ‘no wireless extensions’.

To be able to run the commands ifconfig wlan0 up, iwconfig wlan0 essid WIFI_NETWORK_HERE key PASSWORD_HERE and dhclient wlan0, you need to be root. So, you have to put the word sudo before those commands (unless you’re already logged in as root).

The password in the command iwconfig wlan0 essid name key password should be in hexadecimal. If you want to type the ASCII password, you would use iwconfig wlan0 essid name key s:password.

The command iwconfig wlan0 essid name key password only works with access points that use WEP as encryption. If the access point uses WPA/WPA2, you’ll have to use another method to connect, found here:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值