This hack will aktivate ssh for root via the container ip with username and password
Login via docker inspect <container> bash
export TERM=xterm
nano /etc/ssh/sshd_config
PermitRootLogin without-password
change to
PermitRootLogin yessudo apt-get --reinstall install openssh-server openssh-client
service ssh restart
passwd root
Type in your password.
After that you can access the container via IP and username / password
Keine Kommentare:
Kommentar veröffentlichen