English | 日本語
XeFM provides seamless SFTP (SSH File Transfer Protocol) support, allowing you to browse, search, and manage files on remote servers as if they were local directories. XeFM opens one SSH connection per server and runs every operation over it, and supports all standard file operations.
~/.ssh/configssh command — the OpenSSH client. macOS and Linux have it; on
Windows, the OpenSSH client built into Windows works, as does any other on
your PATH (Git for Windows, MSYS2, Cygwin).Navigate to an SFTP location using the standard SSH URL format:
ssh://hostname/path/to/directory
ssh://user@hostname/path/to/directory
ssh://hostname:port/path/to/directory
Examples:
ssh://myserver/home/user/projects
ssh://admin@192.168.1.100/var/log
ssh://server.example.com:2222/opt/data
Method 1: Jump to Path Dialog
jump_to_path)ssh://hostname/pathMethod 2: Favorites
~/.xefm/config.pyfavorites)Method 3: Command Line
python3 -m xefm --left ssh://server/path --right ~/local/path
Create or edit ~/.ssh/config to simplify connections:
Host myserver
HostName server.example.com
User myusername
Port 22
IdentityFile ~/.ssh/id_rsa
Host devbox
HostName 192.168.1.100
User developer
Port 2222
Host prod-*
User admin
IdentityFile ~/.ssh/prod_key
StrictHostKeyChecking yes
Benefits:
ssh://myserver/path instead of full detailsGenerate SSH key (if you don’t have one):
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Copy key to server:
ssh-copy-id user@hostname
Test connection:
ssh user@hostname
Once SSH key authentication works, XeFM will use it automatically.
All standard file operations work on SFTP paths:
copy_files): Copy files/directories between local and remotemove_files): Move files/directories on remote serverdelete_files): Delete remote files/directoriesrename): Rename remote files/directoriescreate_directory): Create directories on remote serverview_file): View remote text files with syntax highlightingThese are the File menu’s items; their keys depend on your keymap preset — see Keymap Presets.
XeFM seamlessly handles operations between different storage types:
Local ↔ SFTP:
Copy: ~/local/file → ssh://server/remote/path
Move: ssh://server/data → ~/backup/
SFTP ↔ S3:
Copy: ssh://server/logs → s3://bucket/archive/
Move: s3://bucket/data → ssh://server/processing/
SFTP ↔ Archive:
Copy: ssh://server/file.txt → local-archive.zip
Extract: ssh://server/archive.tar.gz → ~/extracted/
Filename Search (find_files):
*.py, test_*.txtContent Search (find_in_files):
Example searches:
*.log # Find all log files
config.* # Find config files with any extension
test_.*\.py # Find Python test files
XeFM includes several optimizations for SFTP operations:
View remote text files with full syntax highlighting:
Enter, or use File → Open With ▸ Viewer (view_file), to open the viewerisearch)Esc to close the viewerSupported formats: Python, JavaScript, JSON, YAML, Markdown, Shell scripts, and 20+ more with pygments installed.
Add to ~/.xefm/config.py:
# SFTP cache TTL for successful results (seconds)
SSH_CACHE_TTL = 30
# SFTP cache TTL for cached errors (seconds)
SSH_CACHE_ERROR_TTL = 300
Add frequently-used SFTP paths to favorites:
FAVORITES = [
{'name': 'Local Projects', 'path': '~/projects'},
{'name': 'Dev Server', 'path': 'ssh://devbox/var/www'},
{'name': 'Production Logs', 'path': 'ssh://prod-web1/var/log/nginx'},
{'name': 'Backup Server', 'path': 'ssh://backup/mnt/backups'},
{'name': 'S3 Bucket', 'path': 's3://my-bucket/data'},
]
Open them with Go → Go to Favorite… (favorites). The list is drawn from the config alone — no connection is
opened to any of these until you select one.
XeFM runs one ssh per server — the same ssh <server> -s sftp the sftp
command runs — and sends every operation over it. It does not depend on SSH
connection sharing (ControlMaster), so the OpenSSH built into Windows works
too. Anything in your ~/.ssh/config for the host (HostName, User,
ProxyJump, ProxyCommand, keys) applies as it would to ssh itself; port
forwards configured there are left out of XeFM’s connection.
Select multiple files and perform batch operations:
toggle_select_down)toggle_select_files)copy_files to copy, delete_files to delete, etc.)The progress bar fills as the bytes actually move, in both directions, so a slow transfer over a high-latency link does not look stalled at 0%. Press ESC to cancel: the transfer stops within about half a second rather than running to completion in the background, and the partly-transferred file is removed.
Example: Backup multiple directories
1. Navigate to ssh://server/data
2. Open ~/backup in the other pane
3. Select the directories
4. Copy them across (`copy_files`)
5. Press Enter to confirm
Run subshell to enter sub-shell mode with SFTP environment variables:
# Environment variables available:
echo $XEFM_LEFT_DIR # May be ssh://server/path
echo $XEFM_RIGHT_DIR # May be local path
echo $XEFM_THIS_DIR # Current pane (SFTP or local)
# Use with standard tools:
scp $XEFM_THIS_DIR/file.txt user@other:/path/
rsync -av $XEFM_THIS_DIR/ backup/
Type exit to return to XeFM.
Problem: “Connection refused” or “Connection timeout”
Solutions:
ssh user@hostnameProblem: “Permission denied (publickey)”
Solutions:
ssh-add -lssh-copy-id user@hostnameProblem: “Host key verification failed”
Solutions:
ssh user@hostnamessh-keygen -R hostname~/.ssh/known_hostsProblem: Slow directory listings
Solutions:
ping hostname~/.ssh/config:
Compression yes
CompressionLevel 6
Problem: Search is slow
Solutions:
Problem: Directory listing not updating
Solutions:
Problem: Deleted files still showing
Solution:
chmod 600 ~/.ssh/id_rsaFor permission changes:
# Run subshell (Tools → Subshell Here) to enter the sub-shell
chmod 755 $XEFM_THIS_DIR/script.sh
exit
For advanced operations:
# Use sub-shell with standard tools
rsync -av --progress $XEFM_THIS_DIR/ backup/
tar czf archive.tar.gz $XEFM_THIS_DIR/*
1. Left pane: ~/projects/website (local)
2. Right pane: ssh://webserver/var/www/html
3. Select the updated files in the left pane
4. Copy them across (`copy_files`)
5. Confirm overwrite
6. Watch progress bar
1. Left pane: ssh://server/var/log
2. Right pane: ~/logs/backup
3. Search for logs (`find_files`), pattern: *.log
4. Select every file in the results (`toggle_select_files`)
5. Copy them across (`copy_files`)
6. Files copied to local backup
1. Navigate to: ssh://server/tmp
2. Search for old files (`find_files`), pattern: *.tmp
3. Review results
4. Select the files to delete
5. Delete them (`delete_files`)
6. Confirm deletion
1. Left pane: ~/local/config
2. Right pane: ssh://server/etc/app
3. Run an external diff tool (`programs`)
4. Select "Beyond Compare" or "diff"
5. Review differences
For implementation details and architecture, see: