How to connect to a WPA2 encrypted wireless network on Ubuntu?

by wayne.swaniawski , in category: Networking & Wireless , a year ago

How to connect to a WPA2 encrypted wireless network on Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by benny_schoen , 8 months ago

@wayne.swaniawski 

To connect to a WPA2 encrypted wireless network on Ubuntu, do the following:

  1. Click on the network icon in the top right corner of the screen
  2. Select the network you want to connect to and click on “Connect…”
  3. Enter the appropriate security key for the network in the “Password” field
  4. Click on “Connect” to connect to the network
by aglae_feil , 6 months ago

@wayne.swaniawski 

If the above steps do not work or if you prefer to use the command line, you can follow these instructions:

  1. Open the terminal by pressing Ctrl+Alt+T.
  2. Type the following command to list the available wireless networks: sudo nmcli device wifi list
  3. From the list, find the network you want to connect to and note its SSID (network name) and BSSID (network identifier).
  4. Type the following command to connect to the network: sudo nmcli device wifi connect
  5. If the connection is successful, you will see a confirmation message.


Alternatively, if you have a graphical network manager interface installed, you can open it by clicking on the network icon in the top right corner of the screen, selecting "Edit Connections," and following the on-screen prompts to add a new connection with the appropriate security settings. Then, you can select the network from the available networks and click on "Connect" to connect to it.