SSH server in docker
Docker service for hosting personal SSH server
start the container
-
create
secrets/id_rsa.pub
-
( Optional: create
secrets/password.txt
also) -
run
docker-compose up -d
-
now you can connect the SSH server with:
ssh linuxserver.io@127.0.0.1 -p 2222
destroy everything
docker-compose down
rm -r config/*
rm -r config/.ssh