Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to find the password for the wireless network that I am currently connected to (and I entered the password when connecting to the network). How can I do this in Ubuntu?

share|improve this question
I went to "connection information" and didn't find the password. – Anderson Green Jun 27 '12 at 20:18
almost there... you need the edit connections below that ;) – Rinzwind Jun 27 '12 at 20:22
up vote 22 down vote accepted

Left click the connections icon at the top right.

Choose edit connections and then choose edit on the connection you need and click the wireless security.


And click the 'show password'checkbox


share|improve this answer
Ah, my command-line ways were betrayed by my solution :) I like this one better, FWIW. – roadmr Jun 27 '12 at 22:44
Well I like both with a preference to command line @roadmr :D – Rinzwind Jun 28 '12 at 7:17

Open a terminal (press Ctrl+Alt+T), then type sudo cat /etc/NetworkManager/system-connections/<your-SSID> (of course, substitute <your-SSID> with your network's name) and look for the line named psk. This should be your password;


share|improve this answer

if you want to do this with the command line. The wireless network configuration files are saved in /etc/NetworkManager/system-connections/ directory.

cd /etc/NetworkManager/system-connections/
grep -e '^psk=' <YOUR-NETWORK-NAME>
share|improve this answer

This will give you the password for your current connection.

sudo grep psk= /etc/NetworkManager/system-connections/*


sudo grep psk= /etc/NetworkManager/system-connections/(YOUR-SSID)
share|improve this answer

here is a one liner to make @David Foerster answer more useful

MYCWD=`pwd`; cd /etc/NetworkManager/system-connections/ ; sudo grep -e '^psk=' * | less ; cd $MYCWD
share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. - From Review – Jens Erat Jan 16 at 7:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.