D
D
DeadAndDieFox2022-01-19 20:52:23
SSH
DeadAndDieFox, 2022-01-19 20:52:23

How to connect via ssh to an lxc container on a remote machine?

I have a remote Ubuntu machine. I am on the same network with this machine. I can connect to it via ssh without any problems. Also in this machine is an lxc container, which I need to go directly from the main machine (hereinafter referred to as PC). If I cling like this PC->Ubuntu->lxc, then everything is ok (pretty obvious), but I need PC->lxc (when I try to cling, it prompts me to enter a password, but whatever I enter, it says that it is not correct, even if you change passwords).
There is also a site on lxc (using nginx), I can access it from the main computer, but I still can’t connect via ssh. How can I, if at all, implement the PC->lxc scheme?
The file /etc/ssh/sshd_config just didn't correct and after editing it restarted ssh. But maybe he did it wrong, so if the solution is through him, still offer, maybe it will work)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Barbolin, 2022-01-20
@DeadAndDieFox

https://habr.com/ru/company/cloud4y/blog/530516/

S
Sergey, 2022-01-19
@KingstonKMS

ssh tunnel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question