A SSHD service running in Docker.
curl -sSL https://get.docker.com/ | sh
- Pull from Docker Hub (RECOMMEND)
docker pull kallydev/docker-sshd:latest
- Pull from Github Packages
docker pull docker.pkg.github.com/kallydev/docker-sshd/docker-sshd:1.0.0
- Build from source
git clone https://github.com/kallydev/docker-sshd
cd docker-sshd
docker build -t kallydev/docker-sshd
You can specify the port that the SSHD service opens to the external network, for example 1022
.
docker run -d -p 1022:22 -it kallydev/docker-sshd
If your server IP is 42.42.42.42
and the port of SSHD service is 1022
.
# Your default password is `docker-sshd`
ssh root@42.42.42.42 -p 1022
passwd
Copyright (c) KallyDev. All rights reserved.
Licensed under the MIT license.