Merge pull request #19244 from geekpi/translating

Translated
This commit is contained in:
geekpi 2020-08-05 08:51:31 +08:00 committed by GitHub
commit adf4412644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 89 additions and 87 deletions

View File

@ -1,87 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Bypass your Linux firewall with SSH over HTTP)
[#]: via: (https://opensource.com/article/20/7/linux-shellhub)
[#]: author: (Domarys https://opensource.com/users/domarys)
Bypass your Linux firewall with SSH over HTTP
======
Remote work is here to stay; use this helpful open source solution to
quickly connect and access all your devices from anywhere.
![Terminal command prompt on orange background][1]
With the growth of connectivity and remote jobs, accessing remote computing resources becomes more important every day. But the requirements for providing external access to devices and hardware make this task complex and risky. Aiming to reduce this friction, [ShellHub][2] is a cloud server that allows universal access to those devices, from any external network.
ShellHub is an open source solution, licensed under Apache 2.0, that covers all those needs and allows users to connect and manage multiple devices through a single account. It was developed to facilitate developers' and programmers' tasks, making remote access to Linux devices possible for any hardware architecture.
Looking more closely, the ShellHub solution uses the HTTP transport layer to encapsulate the SSH protocol. This transport layer choice allows for seamless use on most networks as it is commonly available and accepted by most companies' firewall rules and policies.
These examples use ShellHub version 0.3.2, released on Jun 10, 2020.
### Using ShellHub
To access the platform, just go to [shellhub.io][3] and register yourself to create an account. Your registration data will help the development team to understand the user profile and provide more insight into how to improve the platform.
![ShellHub registration form][4]
Figure 1: Registration form available in [shellhub.io][5]
ShellHub's design has an intuitive and clean interface that makes all information and functionality available in the fastest way. After you've registered, you will be on the dashboard, ready to register your first device.
### Adding a device
To enable the connection of devices via ShellHub, you'll need to generate an identifier that will be used to authenticate your device when it connects to the server.
This identification must be configured inside the agent (ShellHub client) that will be saved in the device along with the image or it must be added as a Docker container.
By default, ShellHub uses Docker to run the agent, which is very convenient, as it provides frictionless addition of devices on the existing system, with Docker support being the only requirement. To add a device, you need to paste the command line, which is presented inside the ShellHub Cloud dialog (see Figure 2).
![Figure 2: Adding a device to the ShellHub Cloud][6]
By default, the device uses its MAC address as its hostname. Internally, the device is identified by its key, which is generated during the device registration to authenticate it with the server.
### Accessing devices
To access your devices, just go to View All Devices in the dashboard, or click on Devices ****on the left side menu; these will list all your registered devices.
The device state can be easily seen on the page. The online ones show a green icon next to them and can be connected by clicking on the terminal icon. You then enter the credentials and, finally, click the Connect button, see (Figure 3).
![Figure 3: Accessing a device using the terminal on the web][7]
Another way to access your devices is from any SSH client like [PuTTY][8], [Termius][9], or even the Linux terminal. We can use the ShellHub Identification, called SSHID, as the destination address to connect (e.g., ssh [username@SSHID][10]). Figure 4 illustrates how we can connect to our machine using the Linux SSH client on the terminal.
![Figure 4: Connecting to a device using the Linux terminal][11]
Whenever you log in to the ShellHub Cloud platform, you'll have access to all your registered devices on the dashboard so you can access them from everywhere, anytime. ShellHub adds simplicity to the process of keeping communications secure with your remote machines through an open source platform and in a transparent way.
Join ShellHub Community on [GitHub][2] or feel free to send your suggestions or feedback to the developers' team through [Gitter][12] or by emailing [contato@ossystems.com.br][13]. We love to receive contributions from community members!
--------------------------------------------------------------------------------
via: https://opensource.com/article/20/7/linux-shellhub
作者:[Domarys][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/domarys
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/terminal_command_linux_desktop_code.jpg?itok=p5sQ6ODE (Terminal command prompt on orange background)
[2]: https://github.com/shellhub-io/shellhub
[3]: https://www.shellhub.io/
[4]: https://opensource.com/sites/default/files/uploads/shellhub_registration_form_0.png (ShellHub registration form)
[5]: https://opensource.com/article/20/7/www.shellhub.io
[6]: https://opensource.com/sites/default/files/figure2.gif
[7]: https://opensource.com/sites/default/files/figure3.gif
[8]: https://www.putty.org/
[9]: https://termius.com/
[10]: mailto:username@SSHID
[11]: https://opensource.com/sites/default/files/figure4.gif
[12]: https://gitter.im/shellhub-io/community?at=5e39ad8b3aca1e4c5f633e8f
[13]: mailto:contato@ossystems.com.br

View File

@ -0,0 +1,89 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Bypass your Linux firewall with SSH over HTTP)
[#]: via: (https://opensource.com/article/20/7/linux-shellhub)
[#]: author: (Domarys https://opensource.com/users/domarys)
通过 SSH over HTTP 绕过 Linux 防火墙
======
需要远程工作的看一下。使用这个有帮助的开源解决方案在任何地方快速地连接和访问你的所有设备。
![Terminal command prompt on orange background][1]
随着连接速度和远程作业需求的增长,访问远程计算资源变得越来越重要。但是,提供对设备和硬件的外部访问的要求使此任务变得复杂而有风险。为了减少这些冲突,[ShellHub][2] 是一个云服务器,它可以从任何外部网络访问这些设备。
ShellHub 是一个 Apache 2.0 许可的开源解决方案,它可满足所有这些需求,并允许用户通过一个帐户连接和管理多个设备。它开发是为了方便开发人员和程序员的任务,使任何硬件架构都能够远程访问 Linux 设备。
仔细观察ShellHub 方案使用 HTTP 传输层来封装 SSH 协议。这种传输层选择可以在大多数网络上无缝使用,因为大多数公司的防火墙规则和策略通常都可以使用并接受它。
这些示例使用 2020 年 6 月 10 日发布的 ShellHub 版本 0.3.2。
### 使用 ShellHub
要访问该平台,只需进入 [shellhub.io][3] 并注册一个自己的帐户。你的注册数据将帮助开发团队了解用户资料并提供有关如何改进平台的更多信息。
![ShellHub registration form][4]
图 1[shellhub.io][5] 中的注册表格
ShellHub 有直观、简洁的界面,这让所有的信息和功能都能以最快的方式呈现。注册后,你会看到一块仪表板,这时可以注册你的第一台设备。
### 添加设备
要通过 ShellHub 启用设备连接,你需要生成一个标识符,它用于在设备连接到服务器时对你的设备进行身份验证。
此标识必须在将与镜像一起保存在设备的代理ShellHub 客户端)内进行配置,或者必须添加为 Docker 容器。
ShellHub 默认使用 Docker 运行代理,这非常方便,因为它在现有系统上提供了一种无痛的添加方式,支持 Docker 是唯一的要求。要添加设备,你需要粘贴命令行,它显示在 ShellHub Cloud 的对话框中(请参见图 2
![Figure 2: Adding a device to the ShellHub Cloud][6]
图 2将设备添加到 ShellHub Cloud
设备默认使用它的 MAC 地址作为其主机名。在内部,该设备由其密钥标识,这是在设备注册期间生成的,用于与服务器进行身份验证。
### 访问设备
要访问你的设备,只需进入仪表板中的“查看所有设备”,或单击左侧菜单上的“设备”。这将列出你所有已注册的设备。
设备状态可在页面上轻松看到。在线设备旁边会显示一个绿色图标,可以单击终端图标进行连接。你接着输入密码,最后单击”连接“按钮,请参见(图 3
![Figure 3: Accessing a device using the terminal on the web][7]
图 3使用网络上的终端访问设备
另一种访问设备的方法是从类似 [PuTTY][8]、[Termius][9] 之类的 SSH 客户端,甚至 Linux 终端访问。我们可以使用称为 SSHID 的 ShellHub 标识作为连接的目的地址(例如 ssh ssh [username@SSHID][10])。图 4 说明了如何使用在终端中使用 Linux SSH 客户端连接到我们的计算机。
![Figure 4: Connecting to a device using the Linux terminal][11]
图 4使用 Linux 终端连接到设备
无论你何时登录 ShellHub Cloud 平台你都可以访问仪表板上的所有已注册设备这样你可以随时随地访问它们。ShellHub 简化了通过开源平台以透明方式与远程计算机保持通信安全的过程。
在 [GitHub][2] 上加入 ShellHub 社区,或随时通过 [Gitter][12] 或通过电子邮件 [contato@ossystems.com.br][13] 向开发团队发送你的建议或反馈。我们很乐意收到社区成员的贡献!
--------------------------------------------------------------------------------
via: https://opensource.com/article/20/7/linux-shellhub
作者:[Domarys][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/domarys
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/terminal_command_linux_desktop_code.jpg?itok=p5sQ6ODE (Terminal command prompt on orange background)
[2]: https://github.com/shellhub-io/shellhub
[3]: https://www.shellhub.io/
[4]: https://opensource.com/sites/default/files/uploads/shellhub_registration_form_0.png (ShellHub registration form)
[5]: https://opensource.com/article/20/7/www.shellhub.io
[6]: https://opensource.com/sites/default/files/figure2.gif
[7]: https://opensource.com/sites/default/files/figure3.gif
[8]: https://www.putty.org/
[9]: https://termius.com/
[10]: mailto:username@SSHID
[11]: https://opensource.com/sites/default/files/figure4.gif
[12]: https://gitter.im/shellhub-io/community?at=5e39ad8b3aca1e4c5f633e8f
[13]: mailto:contato@ossystems.com.br