I am going to reinstall Ubuntu soon and want to move my wireless passwords I have to the new installation. What do I need to backup to put on the new installation?

  • They're all stored under /etc/NetworkManager/system-connections/, if you're using Network Manager that is (which is the default in Ubuntu). I've never tried this before though, so I'm not sure if simply copying and pasting those config files into another machine would work. – Alaa Ali Jul 18 '13 at 5:14

As @Alaa mentioned, you'd want to copy your system connections to the new computer. Just doing a quick copy of files from /etc/NetworkManager/system-connections/ will suffice. If it doesn't work double check that permissions are rw for root only.

If you have any VPN connections, you'd want to do that for /etc/NetworkManager/VPN as well.

User-specific ones are stuck in your keyring. If you want, you can copy that to a remote location and drop it onto your new system.

  • Just copying the files was not enough on Ubuntu 16.04. The MAC address in the files also had to be changed. See this answer for detailed instructions. – mivk Jan 11 '17 at 14:55

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