Skip to content

test(ssh-transport): ProFTPD mod_sftp in the real-server suite #1670

Backlog

Description

@smart-ssh-planner

Goal

The real-server SSH suite covers ProFTPD with mod_sftp, a server that speaks only SFTP and refuses shell and exec requests.

Context

  • Suite: crates/ssh-transport/tests/sshd/ (README, run.sh, images/{openssh-current,openssh-legacy,dropbear}, scenarios/<name>/). A new image is a new directory under images/.
  • Transport behaviour for refused shell/exec (SSH_SHELL_UNAVAILABLE, SSH_EXEC_UNAVAILABLE) comes from the blocking issue.

Requirements

  • New image images/proftpd/ (Dockerfile + entrypoint, Debian/Alpine package proftpd with mod_sftp, version pinned) serving SFTP on port 22 for testuser/testpass and the suite's keys.
  • Scenario proftpd-sftp and tests in a new file crates/ssh-transport/tests/sshd_proftpd.rs.
  • If run.sh needs to know about the image (readiness check for a non-OpenSSH banner), adapt it; no change under .github/.

Acceptance Criteria

  • Password and public-key login work against proftpd-sftp.
  • open_sftp lists, uploads and downloads a file.
  • open_shell fails with SSH_SHELL_UNAVAILABLE (or a refused PTY) within 5 s.
  • execute("uname -a") fails with SSH_EXEC_UNAVAILABLE within 5 s.
  • README lists the new image.
  • Relevant automated tests pass (run.sh green locally and in the existing SSH e2e job)

Technical Notes

  • Throw-away credentials only, as in the other images.

Files: crates/ssh-transport/tests/sshd/images/ (new proftpd), crates/ssh-transport/tests/sshd/scenarios/ (new proftpd-sftp), crates/ssh-transport/tests/sshd/run.sh, crates/ssh-transport/tests/sshd/README.md, crates/ssh-transport/tests/ (new sshd_proftpd.rs)

Spec impact: none

Open questions

  • Base image: Debian proftpd-core + proftpd-mod-crypto (recommended, mod_sftp packaged) or a source build.

Related Work

Metadata

Metadata

Assignees

No one assigned

    Labels

    sshtests

    Type

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions