Skip to content

About

Android Mobile Application for managing servers via ssh and sftp at the same time

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simple Server Management (SSM)

A mobile-first Flutter application for managing Linux/Unix servers via SSH and SFTP. Connect to multiple servers, execute commands in a full ANSI-compatible terminal, manage files remotely, and access a suite of system administration tools.

Features

  • SSH Terminal — Full ANSI-compatible terminal with Unicode rendering, configurable font size, underline cursor, and hardware/virtual keyboard support via the xterm widget
  • File Manager (SFTP) — Browse remote file systems, upload/download files, preview content, rename, delete, and open with external apps. Supports connecting to a different host/port than SSH
  • Server Profiles — Save and manage multiple server connections with separate SSH and SFTP credentials, nicknames, and quick-connect cards
  • Command Snippets — Library of reusable commands with copy, edit, and delete support. Deleted snippets go to the Recycle Bin
  • Secure Vault — PIN-protected local file storage with image thumbnails and video playback. Auto-locks on app suspend
  • Network Discovery — Scan local networks for active hosts
  • Recycle Bin — Recover deleted snippets, server profiles, and SFTP files. Open or download recycled files before restoring
  • Notifications — Background download completion alerts via flutter_local_notifications
  • Biometric Auth — App unlock with fingerprint / face ID on launch (local_auth)
  • Auto-Connect — Optionally auto-connect to the last active session on app launch
  • Hide IPs — Toggle IP/hostname display on the login screen and home screen app bar

Screenshots

Screenshots to be added

Architecture

lib/
├── core/
│   ├── constants/       # AppColors, theme constants
│   ├── models/          # ServerProfile, SftpFile, CommandSnippet, RecycleEntry
│   ├── services/        # SSH, SFTP, Session, Snippets, RecycleBin, Notifications
│   └── utils/           # Formatters
├── features/
│   ├── auth/            # Login screen with biometric auth and saved server cards
│   ├── discovery/       # Network host discovery
│   ├── home/            # Main dashboard with terminal, file browser, snippets, and tools
│   ├── recycle/         # Recycle bin for deleted files, snippets, and servers
│   ├── servers/         # Server list with search, edit, nickname, and delete
│   ├── settings/        # App settings (biometric, font size, hide IPs, auto-login)
│   ├── terminal/        # Standalone full-screen terminal with special-keys toolbar
│   └── vault/           # PIN-protected local file storage
├── shared/
│   └── widgets/         # GlassCard, reusable widgets
├── app.dart             # MaterialApp with routing & theme
└── main.dart            # App entry point

Key Services

Service Role
SshService Manages SSH connections, command execution, and terminal I/O via dartssh2
SftpService Handles file transfers, directory listings, and remote file operations (supports independent host/port)
SessionService Manages server profiles, active sessions, and credential storage
SnippetService Loads and manages command snippets
RecycleBinService Tracks and restores deleted files, snippets, and server profiles
NotificationService Local push notifications for download events

Tech Stack

  • Framework: Flutter 3.12+ / Dart 3.12+
  • SSH/SFTP: dartssh2 for SSHv2 connections and SFTP channels
  • Terminal: xterm for full ANSI/Unicode terminal rendering
  • Storage: flutter_secure_storage for encrypted credentials, shared_preferences for settings
  • Auth: local_auth for biometric authentication
  • Icons: Custom app icon from SSMLogo.jpg

Getting Started

Prerequisites

  • Flutter SDK >=3.12.2 (see pubspec.yaml)
  • Android Studio / Xcode (for platform builds)
  • A Linux/Unix server with SSH access for testing

Setup

  1. Clone the repository:

    git clone <repo-url>
    cd simple_server_management
  2. Install dependencies:

    flutter pub get
  3. Run on a connected device / emulator:

    flutter run

Configuration

App icon and branding are configured in pubspec.yaml:

flutter_launcher_icons:
  image_path: "SSMLogo.jpg"
  android: true
  ios: true

Regenerate launcher icons after changing the source image:

dart run flutter_launcher_icons

Building

# Debug APK
flutter build apk --debug

# Release APK (unsigned, uses debug keystore)
flutter build apk --release

# iOS (requires macOS + Xcode)
flutter build ios

Troubleshooting

  • Terminal shows garbled characters: Ensure the server's locale is UTF-8 (run locale on the server). SSM uses utf8.decode() on all SSH output.
  • Terminal input issues: If you need to press Enter twice, try a hardware keyboard or use the special-keys toolbar in the standalone terminal screen.
  • SFTP upload fails: Verify write permissions on the target directory. Check that SFTP host/port are correct if using separate credentials.
  • Biometric auth not working: The device must have a biometric sensor enrolled. On Android, ensure USE_BIOMETRIC permission is granted (required for Android 13+).
  • Build errors: Run flutter clean && flutter pub get to reset build artifacts.

About

Android Mobile Application for managing servers via ssh and sftp at the same time

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages