Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natthasath/demo-docker-ssh

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.
https://github.com/natthasath/demo-docker-ssh

docker-compose dockerfile ssh

Last synced: about 2 months ago
JSON representation

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.

Awesome Lists containing this project

README

        

# 🎉 Demo Docker SSH

Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.

![version](https://img.shields.io/badge/version-1.0-blue)
![rating](https://img.shields.io/badge/rating-★★★★★-yellow)
![uptime](https://img.shields.io/badge/uptime-100%25-brightgreen)

### 🔔 Generate SSH Key

```shell
./ssh-keygen.sh
```

### 🏆 Run

```shell
docker-compose up -d
```

### 👉🏻 Try it out

```shell
ssh -i id_rsa sshuser@localhost -p 2222
```