LXD Debian how to login? ssh not working

Post Reply
Rello
Starting out
Posts: 15
Joined: Fri Feb 27, 2015 8:53 pm

LXD Debian how to login? ssh not working

Post by Rello »

I am just testing with LXD after using lxc until now.
I start a Debian Bullseye image - but I cant login.

- within the container station console, there is no auto-login as before. user "root" pw "" or any combination of these does not work
- ssh root@xxx gets an "port 22: Connection refused"

how to I get into this shiny new container?

thank you
kurara
New here
Posts: 8
Joined: Sat Oct 19, 2019 10:55 am

Re: LXD Debian how to login? ssh not working

Post by kurara »

use
lxc exec debian-1 bash
to get into the console of debian, then use passwd to change root password
Rello
Starting out
Posts: 15
Joined: Fri Feb 27, 2015 8:53 pm

Re: LXD Debian how to login? ssh not working

Post by Rello »

but there should be a gui way.
is this related to your other question that the lxd is blocking port 22 perhaps?
Rello
Starting out
Posts: 15
Joined: Fri Feb 27, 2015 8:53 pm

Re: LXD Debian how to login? ssh not working

Post by Rello »

found it!

within the container, there iss the "terminal" button on top.
there you can execute the passwd commend. then a new screen appears to set the password. afterwards you can login via the GUI terminal
Post Reply

Return to “Container Station”