How to move your MobaXterm sessions to a Mac or Linux
Short answer. To export MobaXterm sessions, right-click a sessions folder in MobaXterm on Windows and choose "Export sessions from this folder", or take a copy of MobaXterm.ini. Copy that file to the Mac or Linux machine and open it in MyXterm with Session › Import from MobaXterm…. Your SSH sessions arrive with their folders, ports, user names and jump hosts. Passwords are never read, and RDP, VNC, Telnet, serial and other session types are skipped and counted in a summary you confirm first.
MobaXterm is a Windows application, so its sessions can't follow you to macOS or Linux inside MobaXterm itself. This guide uses MyXterm, our free, open-source SSH client, as the destination; the first two sections are useful for any tool that reads MobaXterm files. MobaXterm is a trademark of Mobatek. MyXterm is an independent project and is not affiliated with Mobatek or MobaXterm.
Where MobaXterm keeps the sessions file
Mobatek's documentation says MobaXterm stores its configuration and sessions in one file, MobaXterm.ini [1]. Section 6.7 gives three places to look:
- Installed edition: the
MobaXtermfolder inside your Documents folder. - Portable edition: the same folder as the MobaXterm program.
- Some versions:
%AppData%\MobaXterm.
The same section says the -i command-line setting can point MobaXterm at a configuration file somewhere else, so on a managed PC the file may be on a network share. Mobatek's documentation does not describe a registry location for sessions, so this guide doesn't either: if you can't find MobaXterm.ini, use the export below.
Export MobaXterm sessions on Windows
Mobatek documents two ways to get sessions out, and MyXterm reads the result of the first, or the ini file itself:
- Export a sessions folder. In the sidebar, right-click a sessions folder and choose "Export sessions from this folder" [1]. Right-click the top folder to take everything. MobaXterm writes a text file; MyXterm's importer expects the
.mxtsessionsformat. - Copy
MobaXterm.ini. Close MobaXterm first, then copy the file. MyXterm reads its session sections the same way as an export. - Settings › Export configuration writes a
.mobaconffile [2], since version 25.2 optionally with a password [3]. That is for moving to another MobaXterm. MyXterm does not read.mobaconffiles.
Treat the file as sensitive: it lists your hosts and user names, and a whole MobaXterm.ini holds the rest of MobaXterm's configuration as well. Move it over a channel you trust, for example scp or a USB stick, and delete the copy once the import is done.
Import MobaXterm sessions into MyXterm
- Install MyXterm on the Mac or Linux machine from the download page. Its first stable release is v0.1.0; the macOS builds are signed and notarized, the Linux packages are not code-signed.
- Choose Session › Import from MobaXterm…, or press Import on the Hosts page and pick MobaXterm. The same command is in the command box (⌘K on macOS, Ctrl+Shift+K on Linux).
- Pick the
.mxtsessionsfile orMobaXterm.ini. - Read the summary. It lists how many new SSH sessions will be saved and in which folders, how many are already saved, what is skipped and why, and which settings are not applied. Nothing is saved until you press Import; Cancel is the default button.
Importing the same file again does not create duplicates: sessions already saved are left as they are partial SESS-005. The importer only reads the file. It never writes to it and never connects anywhere.
What carries over
For each SSH session, as read from the importer's source [4]:
| In MobaXterm | In MyXterm |
|---|---|
| Session name | Session name |
| Folder and subfolders | The same folder path in the sidebar |
| Remote host and port | Host and port |
| User name | User name; a session set to MobaXterm's default login arrives with no user name |
| SSH gateways (jump hosts), with their users and ports | A jump-host chain in the same order |
| Comments | Session notes |
Names in other alphabets survive: the file is read as UTF-8 when it is valid UTF-8 and as Windows-1252 otherwise.
What does not carry over
- Passwords: never. MyXterm reads only the session sections of the file and ignores every other section, whatever it holds. Nothing is decrypted. You type each password once in MyXterm, and if you tick "Remember this password" it goes into the macOS Keychain or the Linux Secret Service, not into a MyXterm file partial VAULT-101. An opt-in import of MobaXterm passwords with your master password is planned VAULT-103, not built.
- Private key paths. A Windows path would be wrong on the new machine. The summary counts these sessions; copy your keys yourself and choose the key again in each session. MyXterm reads OpenSSH, PEM and PuTTY
.ppkkeys partial SSH-004. - Command at login, gateway private keys and proxy settings. Not applied, and counted in the summary under "Not applied".
- Other session types. Telnet, RDP, VNC, SFTP, FTP, serial, Mosh, shell, WSL, browser and the rest are skipped and counted by type. MyXterm has Telnet, RDP, VNC, serial and mosh sessions, but you create those again by hand.
- Everything outside the session list. Terminal colours and fonts, macros, saved tunnels and MobaXterm's own settings are not read.
- Sessions the importer can't trust. A session with an empty or malformed host, a host or user name starting with
-, an invalid port, or a gateway it can't read is skipped with the reason, instead of being imported without its gateway.
Not tested: the importer's tests use synthetic session lines in the format MobaXterm 23.x writes, and the format itself is not documented by Mobatek. We have no recorded test with a file exported from MobaXterm 26. If the summary skips sessions it should have read, please open an issue with the skipped line, hosts and names removed.
After the import
- Connect to one imported session and check the host key card before you accept it: the new machine has never seen these hosts.
- Set the environment of production hosts to PROD, so their panes carry the PROD plate and get the extra confirmations.
- Copy your private keys into
~/.sshwith permissions600, or load them into your SSH agent. - Recreate the RDP, VNC, Telnet and serial sessions you still need.
For what MyXterm does and does not do once your sessions are in, see Is there a MobaXterm for Mac? and the full MobaXterm alternative comparison.
Download MyXterm MobaXterm alternative: compare
FAQ
Where does MobaXterm store its sessions?
In a file called MobaXterm.ini, according to Mobatek's documentation: in the MobaXterm folder inside Documents for the installed edition, next to the program for the portable edition, or in %AppData%\MobaXterm with some versions.
How do I export MobaXterm sessions?
Right-click a sessions folder in the MobaXterm sidebar and choose "Export sessions from this folder". To move everything, export the top folder or copy MobaXterm.ini while MobaXterm is closed.
Can MyXterm import MobaXterm passwords?
No. MyXterm never reads or decrypts MobaXterm's saved passwords. You enter each password again, and a remembered password is stored in the operating system's keychain. An opt-in password import is planned, not built.
Does the import include RDP, VNC and serial sessions?
No. Only SSH sessions are imported today. Other session types are skipped and counted by type in the summary, so you know what to create again by hand.
Can MyXterm open a .mobaconf file?
No. MyXterm reads .mxtsessions exports and MobaXterm.ini. A .mobaconf file is MobaXterm's own configuration export for another MobaXterm installation.
Sources
Mobatek's pages read on 4 December 2026; they can change. MyXterm behaviour is from the code and feature list on the main branch on the same day.
- MobaXterm documentation, sections 1.2 and 6.7: mobaxterm.mobatek.net/documentation.html
- Mobatek blog, exporting and importing the configuration (29 December 2023): blog.mobatek.net/post/mobaxterm-restore-settings
- MobaXterm changelog, version 25.2: mobaxterm.mobatek.net/download-home-edition.html
- MyXterm's MobaXterm importer: crates/sessions/src/mobaxterm.rs
- MyXterm feature list with statuses: docs/features.toml
- MyXterm changelog, "Imports ask first": CHANGELOG.md
Last updated