Cannot SSH into Ubuntu container

borpin

Member
Jun 27, 2020
23
18
8
61
I have a new container created from an Ubuntu template. I can connect via console through the UI, but cannot SSH into the container. I can see via the UI that the SSH login authentication fails.

Any suggestions?
 
  • Like
Reactions: TheePorkchopExpress
Solution was obvious - root by default is not permitted to login via SSH on Ubuntu.

Create a drop in to override the setting and restart the service.

Code:
echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/rootlogin.conf && systemctl restart sshd.service
 
Last edited: