I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with their passwords.
2 Answers
Open Keychain Access from /Applications/Utilities and search for AirPort. All the network passwords are listed as 'AirPort network password' entries. Double-click an entry, then select Show Password and enter your login password to view it.
-
4thanks thats the graphical way, found other way to do it via terminal: cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport Commented Oct 12, 2014 at 19:44
-
1→ Stack: could you develop the method you found, and make an answer of it?– athenaCommented Nov 8, 2014 at 14:19
-
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport is an executable file in current version of MacOS. 'cd' to it is invalid.– NateCommented Feb 27, 2019 at 19:36
Open Keychain Access app. It is located in the Applications > Utilities folder.
Select the System keychain in the left menu bar, and select Passwords from the category menu. This will filter the keychains to just your stored passwords
PFA below.