inspoaibox/Mshell
Tentang
MShell 是一款现代化、功能丰富的 SSH 客户端,基于 Electron、Vue 3 和 TypeScript 构建。
Pengembangan web dan aplikasiYang dapat Anda lakukan
- ✅ Full-featured terminal powered by xterm.js
- ✅ WebGL rendering with automatic fallback to Canvas/DOM
- ✅ 20+ built-in themes (Dark, Light, Solarized, Monokai, Dracula, Nord, OneDark, and more)
- ✅ Customizable font, size, cursor style, and rendering type
Pertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +2
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliEnglish | 中文
MShell - Professional SSH Client
MShell is a modern, feature-rich SSH client built with Electron, Vue 3, and TypeScript.
Supported Platforms
Supported platforms: Windows + Android
✨ Core Features
🔐 SSH Connection Management
- ✅ Password and private key authentication (RSA, ED25519, ECDSA)
- ✅ Session groups with drag-and-drop sorting
- ✅ Quick connect
- ✅ Session import and export
- ✅ Keep-alive and automatic reconnect
- ✅ Multiple concurrent connections
- ✅ Credential storage encrypted with Windows DPAPI
💻 Terminal Features
- ✅ Full-featured terminal powered by xterm.js
- ✅ WebGL rendering with automatic fallback to Canvas/DOM
- ✅ 20+ built-in themes (Dark, Light, Solarized, Monokai, Dracula, Nord, OneDark, and more)
- ✅ Customizable font, size, cursor style, and rendering type
- ✅ Copy and paste support (Ctrl+Shift+C/V)
- ✅ Quick actions from the context menu
- ✅ Select all (Ctrl+Shift+A)
- ✅ Automatic resizing and scrollback buffer
- ✅ Full ANSI color code support
- ✅ Split-screen mode (horizontal/vertical)
- ✅ Tab and split-screen switching
📁 SFTP File Transfer
- ✅ Dual-pane file browser (local + remote)
- ✅ Drag-and-drop upload
- ✅ Batch upload/download with progress tracking
- ✅ File operations (create, delete, rename, change permissions)
- ✅ Transfer queue management (pause, resume, cancel)
- ✅ Resume incomplete transfers
- ✅ Transfer history
- ✅ Single-click selection and double-click folder opening
- ✅ Context menu support
🔧 Advanced Features
- ✅ Port forwarding: local, remote, and dynamic forwarding (SOCKS5)
- ✅ Port forwarding templates: save frequently used forwarding configurations
- ✅ Command snippets: save commonly used commands with variable replacement
- ✅ Command history: record executed commands with search and favorites
- ✅ Server monitoring: monitor CPU, memory, disk, and network usage in real time
- ✅ Task scheduler: run commands on a schedule
- ✅ Workflows: create multi-step automation workflows
- ✅ SSH key management: generate, import, and export SSH keys
- ✅ Audit logs: record operations with filtering and export
📊 Statistics and Analytics
- ✅ Session usage statistics
- ✅ Connection duration statistics
- ✅ Traffic statistics
- ✅ Command usage frequency statistics
- ✅ Provider cost analysis
- ✅ Regional distribution statistics
- ✅ Customizable display components
🔒 Security Features
- ✅ Session lock: password protection and automatic locking
- ✅ Known host verification: SSH host key verification
- ✅ Credential encryption: credentials stored with Windows DPAPI encryption
- ✅ Audit logs: complete operation records
Security product documentation: docs/security-manual.md. It covers credential protection, host fingerprints, session locking, backup synchronization, logs, MCP reads, query and switch-control writes, and event response procedures.
💾 Data Management
- ✅ Backup and restore: encrypted backups of sessions, snippets, and settings
- ✅ Automatic backup: scheduled automatic backups
- ✅ Crash recovery: automatically restore session state
- ✅ Selective restore: choose specific data to restore
🎨 User Interface
- ✅ Modern dark and light themes
- ✅ Multi-tab terminal management
- ✅ Sidebar navigation
- ✅ Connection information in the status bar
- ✅ Responsive layout
- ✅ Full keyboard shortcut support
- ✅ Right-click context menus
- ✅ Drag-and-drop sorting (sessions and tabs)
- ✅ Chinese and English language support
⚙️ System Settings
- ✅ Open at startup
- ✅ Minimize to tray
- ✅ Minimize on close
- ✅ Theme switching (automatic/dark/light)
- ✅ Language switching
- ✅ Terminal settings (font, size, cursor, rendering type)
- ✅ SSH settings (timeout, keep-alive)
- ✅ SFTP settings (concurrency, hidden files)
- ✅ Security settings (password saving, host verification)
- ✅ Customizable shortcuts
⌨️ Keyboard Shortcuts
Session Management
Ctrl+N- New sessionCtrl+T- Quick connectCtrl+F- Search sessions
Tab Management
Ctrl+W- Close current tabCtrl+Tab- Next tabCtrl+Shift+Tab- Previous tabCtrl+1~9- Switch to a specific tab
Terminal Operations
Ctrl+Shift+C- CopyCtrl+Shift+V- PasteCtrl+Shift+A- Select all
Other
Ctrl+,- Open settingsCtrl+Alt+L- Lock session
🛠️ Technology Stack
- Frontend: Vue 3 + TypeScript + Vite
- UI Components: Element Plus
- Desktop Framework: Electron
- Mobile Framework: Capacitor Android
- SSH Library: ssh2
- Android SSH Bridge: JSch + Capacitor Plugin
- Terminal: xterm.js + addons
- State Management: Pinia
- Internationalization: vue-i18n
- Build Tools: Vite + electron-builder
📂 Project Structure
mshell/
├── electron/ # Electron main process
│ ├── main.ts # Main entry point
│ ├── preload.ts # Preload script
│ ├── managers/ # Core managers
│ │ ├── SessionManager.ts # Session management
│ │ ├── SSHConnectionManager.ts # SSH connection management
│ │ ├── SFTPManager.ts # SFTP management
│ │ ├── PortForwardManager.ts # Port forwarding
│ │ ├── SnippetManager.ts # Command snippets
│ │ ├── CommandHistoryManager.ts # Command history
│ │ ├── ConnectionStatsManager.ts # Connection statistics
│ │ ├── SessionTemplateManager.ts # Session templates
│ │ ├── BackupManager.ts # Backup management
│ │ ├── ServerMonitorManager.ts # Server monitoring
│ │ ├── SSHKeyManager.ts # SSH key management
│ │ ├── AuditLogManager.ts # Audit logs
│ │ ├── SessionLockManager.ts # Session locking
│ │ ├── TaskSchedulerManager.ts # Task scheduling
│ │ └── WorkflowManager.ts # Workflow management
│ ├── ipc/ # IPC handlers
│ │ ├── ssh-handlers.ts
│ │ ├── sftp-handlers.ts
│ │ ├── session-handlers.ts
│ │ └── ...
│ └── utils/ # Utilities
│ ├── app-settings.ts
│ ├── crash-recovery.ts
│ ├── known-hosts.ts
│ └── logger.ts
├── src/ # Vue application
│ ├── App.vue # Root component
│ ├── components/ # Vue components
│ │ ├── Terminal/ # Terminal components
│ │ ├── Session/ # Session management components
│ │ ├── SFTP/ # SFTP components
│ │ ├── PortForward/ # Port forwarding components
│ │ ├── Snippet/ # Snippet components
│ │ ├── Statistics/ # Statistics components
│ │ ├── Keys/ # SSH key components
│ │ ├── Audit/ # Audit log components
│ │ └── Common/ # Common components
│ ├── stores/ # Pinia state management
│ ├── types/ # TypeScript type definitions
│ ├── utils/ # Utility functions
│ │ ├── terminal-manager.ts
│ │ ├── terminal-themes.ts
│ │ └── keyboard-shortcuts.ts
│ └── i18n/ # Internationalization
│ └── locales/
│ ├── zh-CN.ts
│ └── en-US.ts
├── src/mobile/ # Android mobile web entry
│ ├── MobileApp.vue # Mobile root component
│ ├── components/ # Mobile settings, import/export, and security lock components
│ ├── services/ # Mobile data, sync, security, and Android SSH bridge services
│ └── README.md # Mobile development and packaging guide
├── android/ # Capacitor Android native project
│ └── app/src/main/java/com/mshell/mobile/
│ ├── AndroidSshBridge.java
│ ├── SecurityBridge.java
│ └── MainActivity.java
└── release/ # Build output
🚀 Development Guide
Requirements
- Node.js 18+
- npm or yarn
Android development also requires:
- Android Studio
- Android SDK / Build Tools
- JDK 21.x (the current Android project uses Java 21 compile options)
Current Android project baseline:
| Component | Requirement |
|---|---|
| Node.js | 18+ |
| Capacitor | 8.x |
| Gradle Wrapper | 8.14.3 |
| Android Gradle Plugin | 8.13.0 |
| Android SDK | compileSdk 36 / targetSdk 36 / minSdk 24 |
| Java/JDK | 21.x; Android Studio bundled JBR 21 recommended |
If you see invalid source release: 21, the command line is using JDK 17 or lower. In PowerShell, temporarily switch to the JDK 21 bundled with Android Studio:
$env:JAVA_HOME='D:\Program Files\Android\Android Studio\jbr'
$env:Path="$env:JAVA_HOME\bin;$env:Path"
java -version
javac -version
Install Dependencies
npm install
Development Mode
npm run dev
Mobile web debugging:
npm run mobile:dev
Build the Application
npm run build
Build mobile web resources:
npm run mobile:build
Sync with the Android native project:
npm run android:sync
Open Android Studio:
npm run android:open
Testing
npm test
📦 Packaging and Release
The desktop application is packaged as a Windows installer (NSIS) with electron-builder.
npm run build
The installer is generated in the release/ directory.
Android packaging:
npm run android:build
This command runs mobile type checking, synchronizes the Android project, and generates a debug APK. The debug APK is usually written to android/app/build/outputs/apk/debug/.
You can also build a specific package type:
npm run android:build:debug
npm run android:build:release
npm run android:build:bundle
Release packages require a configured signing file. Signing files should not be committed to the repository. To open Android Studio, run:
npm run android:open
🔐 Security
- ✅ Credentials encrypted with Electron safeStorage (Windows DPAPI)
- ✅ Plaintext passwords are not stored in memory or logs
- ✅ SSH host key verification
- ✅ Secure inter-process IPC communication
- ✅ Session lock protection
- ✅ Complete audit logs
📝 Changelog
v0.2.22 (latest)
- Added pinned, move up, and move down actions for session groups, plus pinning for individual sessions; sorting persists after restart.
- Fixed session drag sorting, bastion host connections staying in Connecting, and lazy script execution paths.
- Improved terminal search, real-time monitoring, command intelligence, firewall management, and Docker management.
- Improved text contrast for destructive action buttons such as delete.
- Full details: MShell v0.2.22 Upgrade Notes.
v0.1.4
- ✅ Fixed duplicated terminal characters
- ✅ Fixed split-screen data loss
- ✅ Improved session list layout
- ✅ Fixed drag-and-drop sorting
- ✅ Added tray minimization
- ✅ Added password-protected startup lock
- ✅ Improved the settings panel
- ✅ Fixed SSH settings not being applied
- ✅ Added open-at-startup
- ✅ Improved command snippet expansion/collapse
- ✅ Added display settings for statistics
- ✅ Fixed the SFTP context menu
- ✅ Improved SFTP file operations (single-click selection, double-click to open)
v0.1.3
- ✅ Added statistics
- ✅ Added time-range filtering
- ✅ Fixed theme initialization flicker
v0.1.2
- ✅ Improved multilingual support
- ✅ Added drag-and-drop support
- ✅ Enhanced security
v0.1.1
- ✅ Initial release
📄 License
This project uses a custom non-commercial license. See LICENSE for details.
- Personal use, learning, research, and modification are permitted.
- Internal evaluation, deployment, and use by companies or organizations are permitted.
- Unauthorized commercial sales, resale, paid hosting, SaaS services, commercial integration distribution, or other profit-making use based on this project are prohibited.
For commercial licensing, please contact the project maintainer.
👥 Authors
MShell Team
🔗 Links
Note: This project is under active development, and some features may still be incomplete. Issues and pull requests are welcome!
Jelajahi proyek terkait
Memuat…