Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Holer implements public network ssh to access private network Docker container

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Public network accesses private network Docker container

The Docker container is installed on the host in the local area network, which can only be accessed in the private network. How can I access the Docker container in the private network from the public network?

This article will introduce the specific implementation steps.

1. Preparation 1.1 install and start the Docker container

The default sshd port for the Docker container is 22.

two。 Implement step 2.1 download and extract the holer package

Holer package: holer-xxx.tar.gz

Holer supports a variety of OS system platforms, please select the holer package that matches the local OS type.

2.2 get holer access key information

Apply for your own holer access key on the holer official website or use access key information publicly available in the open source community.

For example, the holer information you applied for is as follows. Here we take the holer information as an example:

-Holer Client: holerdemo@gmail.comAccess Key: 8866daebe02846t88s166733595fff5d-Internet Address: holer.org:65014Local Address: 127.0.0.1 -2.3 start the holer service

Windows system platform:

Open the CMD console and go to the directory where the executable is located to execute the command:

Holer-windows-xxx.exe-k 8866daebe02846t88s166733595fff5d

Linux or other system platforms:

Execute the command: nohup. / holer-xxx-xxx-k 8866daebe02846t88s166733595fff5d &

2.4 access the mapped public network address

Enter on the ssh client

Hostname: holer.org port number: 65014

Or execute the command: ssh root@holer.org-p 65014

In this way, you can access the private network Docker container from the public network.

2.5 question consultation and help

When you encounter problems in the process of using holer, you can first check the log information printed by the holer console, so that it is easy to find out the specific cause of the problem.

For more examples of using holer, please refer to the technical materials related to holer.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report