https://github.com/thomiceli/tmp-ssh
Create temporary local SSH servers using Docker for testing
https://github.com/thomiceli/tmp-ssh
Last synced: 10 months ago
JSON representation
Create temporary local SSH servers using Docker for testing
- Host: GitHub
- URL: https://github.com/thomiceli/tmp-ssh
- Owner: thomiceli
- Created: 2023-04-25T16:33:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T17:16:18.000Z (about 3 years ago)
- Last Synced: 2025-03-06T00:18:57.978Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tmp-ssh
Create temporary local SSH servers for testing.
### Usage
```shell
# Start servers in temporary containers
./tmp-ssh.sh start # starts 3 servers by default
./tmp-ssh.sh start 7 # starts 7 servers
# It also adds in the ssh config "StrictHostKeyChecking no" for each server
# Stop servers
./tmp-ssh.sh stop # Stop all servers and clean ssh known_hosts and config
```
### Build
Build from the Dockerfile. This will create a new image with the name `tmp-ssh`.
```shell
./tmp-ssh.sh build # Username/password will be thomas
./tmp-ssh.sh build myusername # Username/password will be myusername
./tmp-ssh.sh --image tmp-ssh start
```