Skip to content

Network Manager Not Saving OpenVPN Passwords

I'm using "nm-connection-editor" to import VPN profiles and then am entering in the VPN login information through that. However, each time I try to connect to a saved profile through "nmtui" it asks me for my password. Is there something in setup I've missed? Why isn't my password saved?

I have done some DuckDuckGo searching on this but I'm only seeing results pertaining to cli.

1 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
acropx

Author

14
posts
89
comments
3
media
View profile

8 comments

Have you installed any credential/secret store like GNOME keyring so the data can be stored safely?

2 points

Nope! Great tip. Should I be looking at GNOME keyring specifically or is there any other recommended one that works well with Network Manager (I know NM is a GNOME product, but I'm still curious)

1 points

It's specially build for GNOME so it integrates smoothly with all GNOME based apps without the need to create additional configurations. You can check out GNOME keyring's wikipedia page for details, there is also a list of othe related apps like KWallet which is the equivalent for KDE based apps. GNOME keyring is the same like Apple Keychain on macOS and if you'd also like to have a GUI you can install GNOME Seahorse.

It will be possible to configure apps without GNOME keyring, but this includes some custom scripts that need to pass the actual data to the apps. Then you could use any password manager like pass, but I think the effort is not worth it and you'll likely get a more insecure setup as if you were using stable and proven apps like GNOME keyring that runs native and uses kernel features like PAM.

2 points

Be aware that connection a few times drops and you might get DNS leaks. Firewall can be set up to prevent this. Can't help you with your setup though, I've set mine up through Gnome applet, runs with no problem

2 points

Dude, save your password system-wide and it will not ask again.

Explain: in nm-connection-editor in password box should be a button where you can choose "Store for all users"

1 points

This definitely works, I was just hoping that I could get encrypted storage to work for single-user due to the environment the device is in.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.