/sshd

sshd server ubuntu:20.04

Primary LanguageDockerfile

sshd

ssh server on top of ubuntu 20.04 based on instruction: https://docs.docker.com/engine/examples/running_ssh_service/

how to run

docker run --name=sshd -e SSH_PASSWORD=******** -p 2222:22 -d ludenus/sshd:latest

ssh-keygen -f "/home/inspiron/.ssh/known_hosts" -R "[localhost]:2222"

ssh -o StrictHostKeyChecking=no -o PreferredAuthentications=password -p 2222 root@localhost