Setting SSH for Docker 🏕️

Usage:
# masuk ke container yg sedang aktif 
docker exec -it [containerid] /bin/bash

# setting ssh 
apt install ssh 

# allow root login to ssh 
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config 

# change password root 
passwd 

# start the SSH service on the container. 
/etc/init.d/ssh start 

# connect to ssh 
ssh root@172.17.0.2 



IDCloudHost | SSD Cloud Hosting Indonesia