Sign inSign up

dingwenxiang0/sshd

By dingwenxiang0

•Updated about 9 years ago

This is Docker Operating System SSHD Image.

Image
0

2.2K

dingwenxiang0/sshd repository overview

Subscribe to project updates by watching the docker-os-sshd GitHub repo⁠.

⁠Get this image

The recommended way to get the Dingwenxiang0 Operating System SSHD Docker Image is to pull the prebuilt image from the Docker Hub Registry⁠.

docker pull dingwenxiang0/sshd

To use a specific version, you can pull a versioned tag. You can view the list of available versions⁠ in the Docker Hub Registry.

docker pull dingwenxiang0/sshd:[TAG]

⁠Running Container on OS with SSH

⁠Use Random Password

docker run -d --name sshd -p 10022:22 dingwenxiang0/sshd:[TAG]

⁠Use Custome Password

docker run -d --name sshd -p 10022:22 -e ROOT_PASS=yourPasswd dingwenxiang0/sshd:[TAG]

⁠Use No Password Login (user:root)
  • Generate ssh key
    in host computer exec command ssh-keygen -t rsa (just hit ENTER):

image

  • Copy id_rsa.pub content

image

  • Running
    docker run -d --name sshd -p 10022:22 -e AUTHORIZED_KEYS=yourCopyContent dingwenxiang0/sshd:[TAG]

⁠Watch logs (get the random password)

docker logs sshd

⁠Use SSH

ssh root@host -p 10022

⁠Open a shell on it

docker exec -it sshd bash

⁠Kill and remove the container

docker rm -f sshd

⁠Issue

⁠Host key verification failed.

image

How to solve the problem?

in host computer remove known_hosts file: rm -rf /root/.ssh/known_hosts

Tag summary

Content type

Image

Digest

Size

86.5 MB

Last updated

about 9 years ago

docker pull dingwenxiang0/sshd