内网穿透:免费公网IP搭建自己的远程ssh服务器

SuiDao能提供基于开源FastTunnel的免费内网穿透服务。官网: https://suidao.io/#/
我的应用场景是搭建自己的远程编译服务器
下面是linux下的使用步骤:

  • 创建隧道,见官网说明
  • 下载客户端,略。直接启动即可。备注: 如果之前没有开启过ssh server则需要安装一下:
sudo apt-get install openssh-server

因为官网的说明是要参照fasttunnal的service 文件,下面直接贴出适合SuiDao开机自动启动的suidao.service:

[Unit]
Description=suidao

[Service]
WorkingDirectory=/usr/local/npc
ExecStart=/usr/local/npc/SuiDao.Client # 执行文件路径
ExecReload=/usr/local/npc/SuiDao.Client
Type=simple

[Install]
WantedBy=multi-user.target

拷贝到 /etc/systemd/system 下,然后执行

systemctl enable suidao.service

即可ssh远程登陆了。

posted on 2022-01-18 17:53  玩泥巴的小子  阅读(857)  评论(0)    收藏  举报