https://github.com/testainers/sshd-container
Small container image to test ssh connections.
https://github.com/testainers/sshd-container
docker docker-container docker-image hacktoberfest podman podman-container podman-image ssh sshd test test-automation testainers
Last synced: 21 days ago
JSON representation
Small container image to test ssh connections.
- Host: GitHub
- URL: https://github.com/testainers/sshd-container
- Owner: testainers
- License: mit
- Created: 2023-03-12T18:19:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T18:33:41.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T20:29:03.957Z (almost 2 years ago)
- Topics: docker, docker-container, docker-image, hacktoberfest, podman, podman-container, podman-image, ssh, sshd, test, test-automation, testainers
- Language: Shell
- Homepage: https://testainers.com
- Size: 63.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sshd-container
[](https://github.com/testainers/sshd-container/stargazers)
[](https://hub.docker.com/r/testainers/sshd-container/tags)
[](https://github.com/testainers/sshd-container/blob/main/LICENCE)
[](https://github.com/testainers/sshd-container/releases/latest)
The small container image is designed specifically for testing SSH connections.
It serves as a lightweight and efficient tool to verify and troubleshoot SSH
connectivity in various scenarios. With its compact size, the container can be
easily deployed and run on different systems or platforms without consuming
excessive resources.
This container image encapsulates the necessary components and configurations to
establish SSH connections, making it convenient for developers, system
administrators, and network engineers who frequently work with SSH. It includes
a minimal operating system with essential SSH client libraries and utilities,
ensuring that only the essential components are present, thus reducing the image
size and eliminating unnecessary overhead.
This container image can be easily customized and extended to meet specific
requirements. Users can add additional tools or libraries as needed, ensuring
that the container is tailored to their particular use cases. This flexibility
allows for seamless integration into existing development workflows and
facilitates the automation of SSH connection testing within CI/CD pipelines or
other automated processes.
Overall, the small container image for testing SSH connections offers a
practical and resource-efficient solution for verifying SSH connectivity. Its
simplicity, portability, and extensibility make it an invaluable asset for
anyone working with SSH and looking to streamline the process of testing and
troubleshooting SSH connections.
## Funding
Your contribution will help drive the development of quality tools for the
Flutter and Dart developer community. Any amount will be appreciated.
Thank you for your continued support!
[](https://www.buymeacoffee.com/edufolly)
## PIX
Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de
para a co munidade de desenvolvedores Flutter e Dart. Qualquer quantia será
apreciada.
Obrigado pelo seu apoio contínuo!
[](https://nubank.com.br/pagar/2bt2q/RBr4Szfuwr)
---
## Environment Variables
| Variable | Description | Default |
|--------------------|---------------------------------------------|---------|
| SSHD_USER | User to connect | root |
| SSHD_PASSWORD | Password for the user | root |
| SSHD_USER_FILE | File (or secret) with user to connect | ------- |
| SSHD_PASSWORD_FILE | File (or secret) with password for the user | ------- |
## How to Use
```shell
docker run --rm --name sshd -e "SSHD_USER=test" -e "SSHD_PASSWORD=test" -p 22022:22 -d testainers/sshd-container:latest
```
## How to Connect
```shell
ssh -p 22022 -o PubkeyAuthentication=no -o UserKnownHostsFile=/dev/null test@127.0.0.1
```
---
## Build
```shell
docker build . --no-cache -t sshd-container
```
## Run
```shell
docker run --rm --name sshd -e "SSHD_USER=test" -e "SSHD_PASSWORD=test" -p 22022:22 -d sshd-container
```