Skip to content
linscpSecure file transfer for Linux and Windows
GitHub

Preferences

Configuration storage

Where linscp keeps sites and settings on Linux and Windows, how to back them up, and how to remove them.

Reviewed

linscp stores its sites, preferences and remembered host keys in WinSCP’s own format. A configuration exported from WinSCP therefore works in linscp, and the other way round. This page shows where the file lives, how to move or back it up, and how to clean up.

Linux has no registry, so linscp always uses an INI file named WinSCP.ini. It looks in this order:

  1. Beside the .AppImage file, when you run the AppImage.
  2. Beside the linscp program itself.
  3. In your configuration folder: $XDG_CONFIG_HOME/linscp/WinSCP.ini, which is usually ~/.config/linscp/WinSCP.ini. linscp creates the folder when needed.

The Flatpak sees its own private configuration folder, so there the file is ~/.var/app/org.linscp.linscp/config/linscp/WinSCP.ini. The first two places do not apply to it. See the Flatpak’s configuration.

The Storage page shows the file in use. Linux offers no other choice there.

To carry linscp with its settings, put an empty WinSCP.ini (Linux) or linscp.ini (Windows) next to the program or AppImage. linscp then writes there instead of your home folder.

A Flatpak install keeps its configuration in ~/.var/app/org.linscp.linscp/config/linscp/WinSCP.ini. It does not share settings with a .deb or AppImage install of linscp on the same computer: each starts with its own sites and preferences.

To take your settings to the Flatpak, quit linscp and copy the file over:

Terminal window
mkdir -p ~/.var/app/org.linscp.linscp/config/linscp
cp ~/.config/linscp/WinSCP.ini ~/.var/app/org.linscp.linscp/config/linscp/

Copy it the other way to go back. To have both installs use one file instead, start the Flatpak with /ini= and the path of the other file. The sandbox can read and write anything in your home folder:

Terminal window
flatpak run org.linscp.linscp /ini="$HOME/.config/linscp/WinSCP.ini"

Do not run both at once on the same file. The Flatpak never reads a WinSCP.ini beside its program, which lives in the read-only sandbox.

Flatpak bundles of linscp 0.7.1 and earlier used another application ID and kept their file in ~/.var/app/io.github._99ecarvalho.linscp/config/linscp/. Copy it from there the same way, then remove the old Flatpak with flatpak uninstall io.github._99ecarvalho.linscp.

Start linscp or linscp-cli with /ini= and a path to use that INI file:

Terminal window
linscp /ini=/home/alice/work/WinSCP.ini

/ini=nul starts with default settings and saves nothing. linscp ignores /ini when it is started by a link from outside, so a web page cannot point it at another file. For one-off overrides of single settings, see raw configuration.

In the Site Manager, open Tools:

  • Export/Backup Configuration… writes everything to an INI file.
  • Import/Restore Configuration… replaces your configuration with one from such a file, including a WinSCP.ini exported from WinSCP on Windows.

Stored passwords travel with the file. Protect it like a password store, or set a master password first.

Tools › Clean Up… in the Site Manager lists everything linscp may have left on this computer, each with its location: general settings, stored sites, caches, the INI file, the random seed file and temporary folders. Check the items to remove and confirm. Use it before you hand over or retire a machine.

  • Temporary directory: where edited and dragged files are staged. See editing remote files for the options.
  • Random seed file: where linscp keeps the random data it reuses for SSH between runs.