Skip to content

使用端口监听的方式实现容器远程连接,但是却无效 #19

Description

@miraclefish

我尝试使用您提供的端口监听的方式实现容器的远程连接:
sudo lxc config device add test proxy0 proxy listen=tcp:宿主机ip:60601 connect=tcp:容器ip:22 bind=host
我可以通过 ssh -p 22 root@宿主机ip 连接宿主机,
但是却不能通过 ssh -p 60601 ubuntu@宿主机ip 连接容器,请问这个问题是怎么解决的?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions