Openning NetworkManager's edit connections window from terminal
The correct command is nm-connection-editor
.
Alternatively, use (sudo) nmtui
to get as close to a GUI as you can get in a terminal.
No need to forward X to add, edit or delete connections via this user-friendly interface.