https://github.com/abiosoft/docker-ssh-server-sample
https://github.com/abiosoft/docker-ssh-server-sample
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abiosoft/docker-ssh-server-sample
- Owner: abiosoft
- License: mit
- Created: 2021-08-23T11:15:30.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T15:28:20.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T14:49:53.233Z (over 1 year ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh server
A sample ssh server for testing ssh connection
## Starting the server
```sh
# add the -d flag to run it in background
docker-compose up --build
```
## Connecting to the server
- `-l` is the user to login as
- `-p` is the port to connect to
- `-i` is the identity file (SSH private key) to use
```sh
ssh -l root -p 2222 -i ssh/id_rsa 127.0.0.1
```
## Teardown the server
```
docker-compose down
```