how to connect to hidden network using command line
It’s completely possible to connect to the network using only the command line, by just using the nmtui
command.
However, how can we connect to a hidden network, as there are a field device
that is needed to be filled?
First, you will need to create a new connection using nmtui edit
, then choose Add
.
Fill your hidden network information (Profile name, SSID, Security, …).
Once you are done, you only need to call nmcli con up your_network_name
, and voila, you are now connected to your hidden network!
You can get the device name by using:
The wifi device is wlo1 (ab:cd:ef:gh:ij:kl)
, so copy it, then edit the Wifi network using nmtui
and fill the Device
field.