That fixed it!
Copy/pasting fix here for anyone else that runs into this.
sudo nano /etc/systemd/system/network-online.target.wants/networking.service
Change
TimeoutStartSec=5min
to
TimeoutStartSec=1sec
Still, the setting in my older container is still at 5min and works as it should. That one...
Container was set up 3 days ago. Issue is present in all new containers I create. But not in one I've had for 2 weeks. The failed attempts are from me 100%.
Thanks, will investigate the networking.service issue.
Okay so both of the first commands did nothing, "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." and I'm using the correct port, PermitRootLogin is set to yes and I have AllowUsers myuser at the bottom of the document.
It seems as if its ignoring the sshd_config at first or...
So I'm having a very frustrating experience using lxc containers at the moment. SSH doesn't start automatically on boot, and if you try to manually start it with "systemctl start/restart ssh" the terminal does nothing and you have to cancel with ctrl+c.
I can however restart it with "service...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.