6
votes
2answers
8k views

How to connect to a WiFi from command line under Ubuntu without .conf file?

I can connect to my WiFi out of the shell by doing: nano wireless-wpa.conf typing: ctrl_interface=/var/run/wpa_supplicant network={ ssid="my_router_id" scan_ssid=1 key_mgmt=WPA-PSK ...