This repo aims to create a Kali Linux docker image with a SSH server embedded.
Generate a SSH key and run the container :
ssh-keygen -N "" -q -f ./kali
docker run --name kali -it -p 2222:22 -e KALI_PUBKEY=$(cat ./kali.pub) tolfsh/kali-sshOr use a password (or both):
docker run --name kali -it -e KALI_PASSWORD='sup3rS3cr3t' tolfsh/kali-sshYou can build and run the image yourself:
git clone https://github.com/tolfsh/kali-ssh
cd kali-ssh
docker build -t kali-ssh .
docker run --name kali -it -p 2222:22 -e KALI_PASSWORD='sup3rS3cr3t' kali-ssh