OS X stores your WiFI details including password in Keychain password management system. You can use this tool, [donotprint]
Tutorial details | |
---|---|
Difficulty | Easy (rss) |
Root privileges | No |
Requirements | None |
Time | 5m |
#1: Display the WiFi Password on Mac OS X Using CLI
You can use the security command. It is a command line interface to keychains and Security framework which stores your WiFI password and other information. Open the Terminal app and type the following command:
security find-generic-password -ga YOUR-ACCOUNT-NAME security find-generic-password -ga SSID-HERE security find-generic-password -ga YOUR-WiFi-Access-Point-Name-Here
In this example, find the Wifi password for Iphone4s access point (SSID):
security find-generic-password -ga Iphone4s | grep -i password
OR
security find-generic-password -ga Iphone4s
You will be promoted to enter your own username and password as follows:
Fig.01 Type admin user account and password
Fig.02: OS X AirPort network password
#2: Not a Fan of Command Line Tools?
The System Keychain is a utility which securely stores all passwords and user IDs for a user and lets that user unlock them all with a single master password.
System Keychain Location
- Open Spotlight to start a search by pressing Command (⌘)-Space bar
- In the search field type: keychain access
- Click on Keychain Access
Fig.03: Find the system keychain on OS X Yosemite
Fig.04: Searching for Iphon4s access point password
Fig.05: Type admin user account and password
9D10bZz@S9A^iRpQ
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 4 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Hey,
Can I see Ubuntu instructions please?
cat /etc/NetworkManager/system-connections/ | grep psk
Don’t suppose anyone has an equivalent for Linux?
cat /etc/NetworkManager/system-connections/YOUR-WIFI-NAME
May have to do this as SU or under SUDO