Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maymeow/ssh-docker
Dockerized SSH server
https://github.com/maymeow/ssh-docker
Last synced: 6 days ago
JSON representation
Dockerized SSH server
- Host: GitHub
- URL: https://github.com/maymeow/ssh-docker
- Owner: MayMeow
- Created: 2017-02-20T07:18:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T17:09:48.000Z (over 7 years ago)
- Last Synced: 2024-10-25T13:16:34.950Z (19 days ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssh-docker
Dockerized SSH server## Requirements
* Docker
* Docker-compose (optional)## Build container
```bash
docker builtd -t your_ssh_image_name .
```## Runing container
```bash
docker run -d -P --name test_sshd -e SSH_PASSWORD=password your_ssh_image_name
```## Deploy with Docker compose
```bash
docker-compose up -d
```If you want rebuild your image run `docker-compose up -d --build`. For deleting container use `docker-compose down`
## Connecting to ssh
Find port on your running container:
```bash
docker port your_ssh_image 22
# 0.0.0.0/327447
```If you want connect from internet you maybe nedd allow port connection in your firewall.
```bash
ssh root@your-server-ip -p 327447
# Enter your password
root@dockercontainerid:/
```## Volumes
Connect any volumes you want have access to them.