mRemoteNG logo

mRemoteNG Connections File: Import, Export, Backup and Encryption

Updated 5 min readData
Illustration of an mRemoteNG confCons.xml file beside export, import, password protect and backup options

Your mRemoteNG connection tree represents hours of work, and it holds the keys to your servers. Losing it hurts. Leaking it hurts more.

This guide covers everything about the connections file: where it lives, how encryption works, how to export and import, how automatic backups behave, and when a shared SQL Server database makes more sense than a file.

Where Your Connections Are Stored

By default, mRemoteNG saves your tree to an XML file called confCons.xml.

  • Installed version: %APPDATA%\mRemoteNG\confCons.xml
  • Portable version: inside the program's own folder

The title bar shows which file is open. You can keep several files, for example one per customer, and switch between them with File > Open Connection File. Recent development builds remember the file you had open and load it again at the next launch.

Password Protecting the File

Stored passwords are always encrypted inside the file, but by default the file can be opened without a password. Adding a master password encrypts the whole file, so it can't be read without it.

  1. Select the root Connections node in the tree.
  2. In the Config panel, set Password protect to Yes.
  3. Enter and confirm a strong master password.
  4. Save the file. From now on, mRemoteNG asks for the password whenever the file is opened.

Warning: There is no recovery if you forget the master password. Store it in your password manager before you save.

Encryption Settings Worth Knowing

The Security page in Tools > Options lets you adjust how the file is encrypted. You can choose the encryption engine and block cipher mode, and set the number of key derivation iterations.

The defaults are sensible. If you raise the iteration count, opening the file takes slightly longer, but guessing the master password becomes much slower for an attacker. That is usually a good trade on a modern PC.

Keep in mind that older versions loaded the decrypted file into memory at start-up, a weakness reported in security advisories. Running a current build is part of keeping the file safe.

What Is Inside confCons.xml

Open the file in a text editor and you'll see a tree of Node elements. Folders are nodes of type Container, and each connection is a node with attributes for its name, hostname, protocol, port, username and dozens of other settings. Inheritance flags sit beside each property.

Knowing this helps with bulk changes. Some admins edit a copy of the file with a script, for example to change a domain name across hundreds of entries. If you try this, work on a copy with the app closed, keep a backup, and never touch the encrypted password values. A broken attribute can stop the whole file from loading.

Exporting Connections

Export is useful for backups, sharing a subset with a colleague, or moving to another tool.

  1. Choose File > Export to File.
  2. Pick what to export: everything, a single folder or one connection.
  3. Choose the format. The mRemoteNG XML format keeps all settings, while CSV is easier for spreadsheets and other tools.
  4. Select which properties to include. Leave out usernames and passwords when the export will travel by email or chat.
  5. Save the file and, if it contains credentials, protect it.

Exporting a single customer's folder is a clean way to hand over documentation at the end of a project.

Importing Connections

The File > Import menu brings entries into the folder you select:

SourceWhat it brings in
Import from FileAnother mRemoteNG file, an RDCMan .rdg file, or PuTTY sessions
Active DirectoryComputer objects from an OU, including sub-OUs
Port ScanHosts in an IP range that answer on chosen ports

After any import, check the new entries. Confirm the protocols are right, review inheritance (recent releases no longer switch it on automatically for AD imports), and delete hosts you don't manage.

Improved compatibility with Remote Desktop Connection Manager files arrived in later releases, which makes moving from RDCMan much smoother.

Automatic Backups

mRemoteNG can keep backup copies of the connections file automatically. In Tools > Options > Backup you'll find settings for:

  • Whether backups are enabled.
  • How often a backup is made, for example on every save, on edit or on exit.
  • The maximum number of backups to keep.
  • The file name format and the folder where backups go.

Point the backup folder at a location that is itself backed up, such as a synced work folder or a network share. Backups on the same disk don't help when the disk fails.

Restoring From a Backup

  1. Close mRemoteNG so it doesn't overwrite files while you work.
  2. Rename the damaged confCons.xml to something like confCons.broken.xml.
  3. Copy the most recent good backup into the same folder and rename it confCons.xml.
  4. Start mRemoteNG and enter the master password if the file is protected.
  5. Check recent changes. Anything added after the backup was made will need to be re-created.

XML File vs SQL Server: Pros and Cons

+Pros

  • XML: simple, portable and easy to back up
  • XML: works offline anywhere
  • SQL: one shared tree for the whole team
  • SQL: central control over access

−Cons

  • XML: copies drift apart between people
  • XML: manual sharing invites mistakes
  • SQL: needs a server to set up and patch
  • SQL: offline use is harder

Sharing Connections Through SQL Server

When a whole team needs the same tree, copying XML files around leads to conflicts. mRemoteNG can store connections in a SQL Server database instead, which the documentation covers in its SQL configuration section.

Each admin's copy reads from and writes to the shared database, so a new server added by one person appears for everyone. Some properties can be saved locally per user, which keeps personal choices, such as panel layout, separate from shared data.

Plan the database security carefully. Limit who can read the connection tables, and use encrypted connections to the SQL server.

Using Several Connection Files

One giant tree isn't always best. Consultants and MSP technicians often keep a separate connection file per customer, which brings real benefits:

  • Each customer's credentials stay in their own encrypted file with its own master password.
  • Handing over documentation at the end of a contract means sending one file.
  • Opening only the customer you're working on reduces the chance of connecting to the wrong environment.

Use File > New Connection File to start a new one and File > Open Connection File to switch. Keep the files in one folder with clear names, and include that folder in your backups.

Good Habits for Your Connection Data

  • Keep one master copy and avoid emailing the file around.
  • Name folders consistently, by customer, site or environment.
  • Remove entries for decommissioned servers each quarter.
  • Rotate stored passwords when staff leave, and update parent folders so inheritance passes the change down.
  • Test a restore once in a while. A backup you've never restored is a hope, not a plan.

Questions and Answers

Where is the mRemoteNG connections file?

For the installed version it is %APPDATA%\mRemoteNG\confCons.xml. The portable version keeps it inside its own folder.

Can I recover a forgotten master password?

No. The file is encrypted with that password and there is no back door. Restore an older unprotected backup if you have one.

Can I import from Remote Desktop Connection Manager?

Yes. Use File > Import > Import from File and choose the RDCMan .rdg file.

Does export include passwords?

Only if you select those properties. Leave them out for any export that will be shared.

How many backups does mRemoteNG keep?

As many as you set in Tools > Options > Backup. Choose a number that covers at least a few weeks of changes.

Conclusion

Your connections live in confCons.xml, so protect it with a master password, run current builds and store backups on a different disk or share. Export folders without credentials when sharing, import from AD, port scans or RDCMan to save typing, and move to SQL Server when a team needs one shared tree. Test a full restore every now and then so you know for certain that your backups really work.