00:00 - 00:03

大 家 好 欢 迎 来 到 我 的 频 道

00:03 - 00:07

今 天 我 来 讲 一 下 这 个 claw 的 免 费 容 器

00:07 - 00:11

搭 建 这 个 网 页 版 的 web SSH 连 接

00:11 - 00:14

关 于 这个 claw 的 免 费 容 器

00:14 - 00:18

它 这 个 首 月 它 是 送 这 个 五 美 元 的

00:18 - 00:19

它 是 不 需 要 验 证 的

00:19 - 00:21

还 有 这 个 信 用 卡

00:21 - 00:24

如 果 是 已 经 有 了 这 个 180 天 的 这 个 GitHub 用 户

00:28 - 00:29

这 个 去 注 册 的 话

00:29 - 00:33

它 可 解 锁 的 就 是 每 个 月 都 会 送 这 个 五 美 元 给 你

00:34 - 00:37

大 家 可 以 点 击 一 下 这 个 链 接 进 行 注 册

00:38 - 00:42

现 在 我 们 就 进 入 这 个 claw 的 平 台

00:42 - 00:45

这 个 就 是 claw 的 容 器 的 平 台 了

00:45 - 00:50

现 在 我 们 来 搭 建 一 下 这 个 网 页 版 的 web SSH 连 接

00:50 - 00:51

我 们 点 击 这 里

01:00 - 01:02

然 后 这 里 有 个 创 建 APP

01:02 - 01:03

我 们 点 击 它

01:06 - 01:09

现 在 这 有 个 应 用 的 名 称

01:09 - 01:11

这 里 我 们 可 以 随 便 写

01:11 - 01:14

就 根 据 自 己 的 爱 好 来 写 一 个

01:14 - 01:17

这 里 就 写 成 web SSH 连 接

01:19 - 01:21

然 后 这 里 面 的 这 个 就 是 镜 像

01:22 - 01:24

我 们 就 选 择 这 个 公 共 的

01:24 - 01:26

然 后 这 里 镜 像 的 名 称

01:26 - 01:27

我 们 回 到 博 客 这 里

01:29 - 01:31

我 们 把 这 个 镜 像 的 名 称 复 制 一 下

01:35 - 01:36

ctrl, C

01:36 - 01:39

然 后 回 到 这 个 claw 平 台

01:41 - 01:42

这 里 就 是 这 个 镜 像 名 称

01:42 - 01:45

那 么 粘 贴 到 这 里面 来

01:45 - 01:49

这 个 就 是 这 个 web SSH 连 接 它 的 一 个 镜 像

01:49 - 01:51

这 个 就 是 它 镜 像 的 地 址

01:51 - 01:54

它 这 个 端 口 是 5032 的

01:54 - 01:56

等 一 下 我 们 要 用 到 的

01:56 - 01:58

这 个 就 是 它 镜 像 的 名 称 了

02:00 - 02:02

现在我们回到这个平台这里

02:04 - 02:07

它这个使用我们选择这个是固定的

02:07 - 02:09

CPU 我们就选择这个是0.2的

02:09 - 02:12

这个内存就选这个256的

02:12 - 02:15

我们可以看一下它这个配置

02:15 - 02:16

它总共合起来

02:17 - 02:19

每天它是0点05美元

02:19 - 02:21

它每天是0点05美元

02:25 - 02:28

这样就相当于每个月它是需要1.5美元

02:28 - 02:31

我这个免费的这个的容器

02:31 - 02:36

只要你这个GitHub账号已经使用了180天

02:36 - 02:39

那么它每个月就会送五美元给你

02:39 - 02:43

这样就相当于这个网站可以长期免费使用了

02:43 - 02:47

现在我们回到这里面网络这里

02:47 - 02:49

这里有个端口

02:49 - 02:52

就刚才那个5032的 就这个

02:55 - 02:56

我 们 把 这 个 端 口 复 制 过 来

03:00 - 03:01

然 后 粘 贴 到 这 里 面

03:03 - 03:05

还 有 我 们 把 这 个 打 开

03:05 - 03:08

这 个 我 们 可 以 来 自 定 义 域 名 我 们 点 击 它

03:10 - 03:12

这 里 就 添 加 一 下 这 条 记 录

03:12 - 03:14

CNAME的 这 条 记 录

03:14 - 03:18

这 里 我 们 这 个 域 名 就 解 析 的 域 名

03:18 - 03:20

我 们 回 到 博 客 这 里

03:20 - 03:22

我 们 等 一 下 要 解 析 是 这 个 域 名

03:22 - 03:24

我 们 可 以 先 把 它 复 制 过 来

03:31 - 03:32

然后我们回到Cloudflare这里

03:34 - 03:36

现在我们来解析这个域名

03:39 - 03:43

我使用的是这个top后缀的域名

03:43 - 03:47

关于这个域名的如果大家没有的话

03:47 - 03:51

可以去申请一下这个XYZ6位数日的域名的

03:51 - 03:53

这个比较便宜的

03:53 - 03:55

大家可以去申请

03:55 - 03:59

然后现在我们就点击这个dns记录

03:59 - 04:01

这里我们来添加一条记录

04:01 - 04:03

我们点击这里添加记录

04:03 - 04:05

这里面的类型

04:05 - 04:10

我们就选择这个CMAME的这条类型

04:10 - 04:11

这里面的名称

04:12 - 04:13

就是这个前缀

04:13 - 04:17

我们就写这个自定义域名的

04:18 - 04:21

我们就写这个webssh连接

04:22 - 04:24

就是这个

04:26 - 04:29

然后这个目标我们就填写这里面的

04:29 - 04:31

我们把这个复制过来

04:36 - 04:39

然后粘贴到这里面

04:39 - 04:42

现在这条记录我们就填好了

04:42 - 04:45

然后这里面的代理状态我们可以先关闭掉

04:45 - 04:48

我们现在可以点击这个保存了

04:50 - 04:52

保存之后回到平台这里

04:53 - 04:55

现在我们这里就可以点击确定了

04:57 - 04:59

然后我们回到Cloudflare这里

04:59 - 05:00

现在

05:00 - 05:04

我 们 来 测 试 一 下 这 个 解 析 有 没 有 成 功

05:04 - 05:06

我 们 win加 R

05:06 - 05:07

然后 再 回 车

05:07 - 05:10

现 在 我 们 就 弹 出 了 这 个 命 令 行

05:12 - 05:14

我 们 来 测 试 一 下

05:16 - 05:19

这 个 就 是 验 证 这 个 有 没 有 解 析 成 功 的 这 条命 令

05:19 - 05:21

我 们 可 以 复 制 过 来

05:22 - 05:23

ctrl C

05:23 - 05:26

后 面 的 这 个 就 根 据 你 自 己 的 域 名 定 了

05:26 - 05:30

大 家 可 以 自 己 修 改一 下

05:30 - 05:32

然后我们来验证一下

05:32 - 05:33

我在命令行这里

05:33 - 05:37

鼠标这里右键单击一下

05:37 - 05:38

然后这里回车

05:41 - 05:43

现在它就解析成功了

05:43 - 05:47

就这个我们可以在Cloudflare这里看一下

05:50 - 05:51

就是这个

05:51 - 05:53

证明它是解析成功了

05:53 - 05:56

现在我们就可以关闭它了

05:56 - 06:00

现在我们就可以回到这个claw的平台

06:02 - 06:05

然后点击这里面的部署

06:05 - 06:06

我们点击它

06:08 - 06:10

我们点击确定

06:15 - 06:17

现在它就部署成功了

06:17 - 06:20

现在我们就可以来访问这个域名

06:20 - 06:23

我们回到这里把这个域名复制一下

06:27 - 06:30

然后我们到这里面来粘贴上去

06:31 - 06:32

回车

06:48 - 06:53

现 在 这 个 网 页 版 的 这 个 web SSH链 接 它 就 成 功 搭 建 了

06:54 - 06:57

但 是 它 这 个 网 站 这 里 显 示 是 不 安 全 的

06:58 - 07:01

它 这 里 应 该 是 HTTP协 议 的

07:01 - 07:05

我 们 要 把 它 强 制 成 这 个https 的

07:05 - 07:09

现 在 我们 回 到 Cloudflare 这 里 设 置 一 下

07:09 - 07:10

我 们 到 这 里

07:10 - 07:11

SSL 这 里

07:12 - 07:14

我 们 点 击 它

07:14 - 07:15

然 后 这 里 概 述

07:16 - 07:21

我们把这个配置从这个灵活我们改成这个完全严格

07:22 - 07:23

我们点击这个保存

07:25 - 07:28

然后边缘证书这里往下拉

07:28 - 07:31

这里有个始终使用这个https

07:31 - 07:33

我们打开它

07:35 - 07:37

那最后一步就是那个小黄云

07:37 - 07:39

要把它开起来

07:39 - 07:40

就是这个代理状态

07:42 - 07:43

我们这里点击这个编辑

07:43 - 07:45

然后把这个代理状态打开

07:45 - 07:47

现在就可以保存了

07:49 - 07:51

现在我们就已经设置完成了

07:51 - 07:54

现在我们再来刷新一下这个网页

07:54 - 07:56

点击这个刷新

08:00 - 08:02

重新刷新

08:02 - 08:04

它就进入了这个网站

08:04 - 08:07

现在它这个连接它就是安全的了

08:07 - 08:09

我们可以点击查看一下它

08:09 - 08:11

这个就是连接安全的了

08:11 - 08:14

也就是这个https协议了

08:16 - 08:18

如 果 到 时 候 你 访 问 进 不 了 这 个 网 站

08:19 - 08:23

可 能 是 这 个 dns 传 播 要 等 待 一 会

08:23 - 08:27

因 为 你 这 个dns 更 改 通 常 是 需 要 一 定 的 时 间

08:27 - 08:29

才 能 这 个 全 球 生 效 的

08:29 - 08:31

你 可 以 等 待 一 段 时 间

08:31 - 08:33

然 后 再 来 访 问 一 下 这 个 网 站

08:34 - 08:37

今 天 关 于 这 个 的 容 器

08:37 - 08:40

搭 建 这 个 网 页 版 的 web SSH 连 接

08:40 - 08:42

我 就 讲 到 这 里 了

08:42 - 08:44

如果大家对我的视频感兴趣的话

08:44 - 08:46

大家可以点赞订阅一下

Build Your Own Free Web SSH Connection with Claw: A Step-by-Step Guide

If you're looking to create a secure and free web SSH connection, this guide is for you! In today's article, we’ll explore how to leverage the free container services offered by Claw to set up a web-based SSH connection without needing credit card verification. We will walk through the entire process, highlighting essential steps and tips along the way.

What is Claw and Its Free Offer

Claw is a powerful platform providing users with free container services. New users can receive a $5 credit for the first month without requiring credit card details. Once a user has a GitHub account that's been active for at least 180 days, they can take advantage of this offer to access the web SSH connection for free every month.

Step 1: Registration on Claw

To get started, click the provided registration link for Claw. Signing up is simple and straightforward. After a successful registration, you will be directed to the Claw container platform, where you can start creating your web SSH connection.

Step 2: Creating the Web SSH Connection App

  1. Start by locating the “Create App” button on the platform.
  2. Enter a name for your app. You might choose something like "Web SSH Connection" that resonates with what you'll be creating.
  3. When prompted to select an image, choose a public image from the available options. Copy the image name from your blog or refer to documentation as needed.

Step 3: Configure the Application

Next, you’ll need to set up the necessary configurations:

  • Choose a fixed CPU allocation.
  • Set the memory to about 256 MB.
  • Review the cost, which should roughly amount to $0.05 per day or about $1.5 for the month—well within the $5 credit you're receiving!

Don't forget to copy the required port number (e.g., 5032) while configuring.

Step 4: Set Up Your Custom Domain

  1. Navigate to the “Network” section on the Claw platform.
  2. Paste the port number and set up a comprehensive custom domain.
  3. To add a CNAME record for your domain, switch to your DNS management tool, such as Cloudflare.
  4. In Cloudflare, choose to add a new DNS record, select CNAME, and fill in the necessary details, including your domain prefix and target.

Step 5: Finalizing DNS Settings

After setting the DNS record, make sure to check that the configuration is correct:

  • Use your terminal to verify the settings—this can usually be done through a series of commands to check if your domain correctly resolves.
  • In Cloudflare, confirm all settings and save your record options.

Step 6: Deployment

Return to the Claw platform to finalize the deployment of your web SSH connection. Click the deployment button to get your app up and running. Once the process completes, you should be able to access your new web interface!

Step 7: Ensuring Secure HTTPS Access

Confirming that your connection is secure is crucial:

  1. Head to your Cloudflare settings and navigate to the SSL configuration.
  2. Change the setting to "Full Strict" to enforce HTTPS.
  3. Ensure the “Always Use HTTPS” feature is turned on.

Wait a few moments for DNS propagation before you attempt to access your connection.

Troubleshooting Access Issues

If you encounter difficulties accessing your website after setup, it may be due to DNS propagation delays, which can take some time to reflect globally. Patience is key—try accessing the site after a short while.

Conclusion: Your Free Web SSH Connection Awaits!

Congratulations! You have successfully built your own web SSH connection using Claw's free container service. This method not only saves costs but also allows for enhanced flexibility in accessing your server via a secure connection. If this guide was helpful, consider liking and subscribing for more insightful content! Remember, the world of containers and web services is full of possibilities—don't hesitate to explore further.