https://github.com/kallydev/docker-sshd
A SSHD service running in Docker
https://github.com/kallydev/docker-sshd
docker sshd ubuntu
Last synced: 7 months ago
JSON representation
A SSHD service running in Docker
- Host: GitHub
- URL: https://github.com/kallydev/docker-sshd
- Owner: kallydev
- License: mit
- Created: 2020-07-13T02:11:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T02:13:17.000Z (about 5 years ago)
- Last Synced: 2025-01-17T11:29:56.707Z (9 months ago)
- Topics: docker, sshd, ubuntu
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker-SSHD
[](LICENSE)
[](https://github.com/kallydev/docker-sshd/commits/master)
[](https://hub.docker.com/r/kallydev/docker-sshd/builds)
[](https://hub.docker.com/r/kallydev/docker-sshd)A SSHD service running in Docker.
## How to use
### 1. Install Docker
```bash
curl -sSL https://get.docker.com/ | sh
```### 2. Build image
- Pull from Docker Hub (**RECOMMEND**)
```bash
docker pull kallydev/docker-sshd:latest
```- Pull from Github Packages
```bash
docker pull docker.pkg.github.com/kallydev/docker-sshd/docker-sshd:1.0.0
```- Build from source
```bash
git clone https://github.com/kallydev/docker-sshd
cd docker-sshd
docker build -t kallydev/docker-sshd
```### 3. Run image
You can specify the port that the SSHD service opens to the external network, for example `1022`.
```bash
docker run -d -p 1022:22 -it kallydev/docker-sshd
```### 4. Connect to SSHD
If your server IP is `42.42.42.42` and the port of SSHD service is `1022`.
```bash
# Your default password is `docker-sshd`
ssh root@42.42.42.42 -p 1022
```### 5. Change password (**IMPORTANT**)
```bash
passwd
```## License
Copyright (c) KallyDev. All rights reserved.
Licensed under the [MIT](LICENSE) license.