New Container: sshd container with different variant `ubuntu, fedora, archlinux, ...`, with ability to preset a lot of authetication related value

Open
#780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, python
Domain
devops, testing-qa

Research direction

The issue names no file or test entry point. Start by reviewing the repository's existing container APIs and the linked OpenSSH and sshd references, then define supported distribution variants, authentication inputs, and tests that demonstrate the container is ready for SSH-protocol use.

Written by the indexing model from the issue text.

Description

🚀 enhancement

What is the new container you'd like to have?

If possible just OS container like ubuntu, fedora, ...

But with sshd service enabled, and the authentication or users is preset by the provided argument to the Container class.

This class of container can significantly ease the testing process for user who are developing SSH-protocol related application.

Today, too many utility are depending on SSH protocol for secure connection (like git, rsync, sshfs, ...), especially in Unix/Linux world.

Why not just use a generic container for this?

Because sshd setup and configuration is relatively complicated, if all the time, user have to manually configure it, it will waste user a lot of time, and it is buggy especially apply it in a testing scenario.

There is different way of authentication and setting for sshd running in different distro.
If this work is done by the user, the user has to manually copy and do string editing in the configuration file for sshd. If exception arise, user will be very difficult to figure out whether the error is from their testcase or the container itself.

And SSHD is a different protocol to HTTP.

Other references:

Include any other relevant reading material about the enhancement.

Dominant language
Python
Stars
2.3k
Forks
397
Avg merge
8d 16h
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from testcontainers/testcontainers-python

All issues in testcontainers/testcontainers-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.