Skip to content

Epic: servers without a shell or without SFTP #1664

Backlog
1 of 6 issues completed
Backlog

Description

@smart-ssh-planner

Goal

Smart SSH works with servers that offer only file transfer (SFTP without a shell, e.g. OpenSSH ForceCommand internal-sftp, ProFTPD mod_sftp, SFTP-only hosting and storage services) and with servers that offer a shell but no SFTP subsystem (e.g. Dropbear on routers). The session detects what the server allows, shows a clear placeholder for what is missing, and the AI is only offered what works.

Scope

  • Transport: refused or forced exec/shell requests fail fast instead of hanging.
  • Session capabilities (shell, command execution, SFTP) detected at connect and when the terminal opens; SFTP over exec as a fallback when the subsystem is missing.
  • No connection-lost / auto-reconnect loop when a shell ends right after it opens.
  • AI and MCP: tools and prompt match the capabilities.
  • Session view: "No shell available" panel instead of the terminal; "File transfer not available" in the file browser.
  • Server profile switch "File transfer only".
  • Real-server tests: OpenSSH internal-sftp (with chroot) and ProFTPD mod_sftp.

Not in scope: other transports (FTP/FTPS), restricted shells that allow only some commands (they keep a normal session; failing commands fail as today).

Shared decisions

  • Capabilities model (IPC): SessionCapabilitiesDto { shell: "available" | "unavailable" | "unknown", exec: bool, sftp: bool, sftpViaExec: bool }, part of SessionSummaryDto, plus event session-capabilities-changed { sessionId, capabilities }.
  • Error codes: SSH_SHELL_UNAVAILABLE (shell request refused, or the shell ended within 5 s of opening without user input), SSH_EXEC_UNAVAILABLE (exec request refused). Neither is retryable for auto-reconnect.
  • exec = false ⇒ the shell is not attempted (shell = "unavailable"), the elevated file browser is not offered, the AI gets no command tool.
  • sftp = false ⇒ the AI gets no file tools, the file browser shows its placeholder.
  • A server that allows neither a shell, nor exec, nor SFTP ends the connect with SERVER_NO_USABLE_CHANNEL.
  • Texts are decided by the maintainer (see the sub-issues); all locales get translations.
  • Profile field: file_transfer_only: bool, default false.

Sub-issues

Sub-issues

Sub-issues

1 of 6 Issues completed
Loading 6 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicssh

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions