A
A
Artem2020-12-25 14:46:46
linux
Artem, 2020-12-25 14:46:46

How to connect to LXC container via SSH?

Lxc is installed on the host, there is already a configured container attached to the ip address, a configured bridge, however, when I try to connect to the container via ssh, I get a message that there is no route, maybe I didn’t do something or did it, but it’s not right when setting up. (openssh-server is set to port 2021 and I specify it in the connection parameters, I looked at the connection address through "ip addr show")

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2020-12-25
@galaxy

Is ping working? If so, check the firewall in the container and on the host machine

D
Denis, 2020-12-31
@Sat0shi

Is it configured through the bridge?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question