Created
March 26, 2025 16:30
-
-
Save Cdaprod/9687726e5c1636a2771126ee8cb9f2af to your computer and use it in GitHub Desktop.
Enable SSH and Add Wi-Fi Config via Serial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tee /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null <<EOF | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=US | |
network={ | |
ssid="YourWiFiSSID" | |
psk="YourWiFiPassword" | |
key_mgmt=WPA-PSK | |
} | |
EOF && sudo systemctl enable ssh && sudo systemctl start ssh && sudo wpa_cli -i wlan0 reconfigure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment