最近有远程办公需求,需要连接内网服务器,又不太想用todesk,于是找到一个安全免费可用的Tailscale · Best VPN Service for Secure Networks,在windows中顺利注册账号后,登陆了我的windows device后,在linux中按照官网流程输入:
curl -fsSL https://tailscale.com/install.sh | sh
并没有弹出任何登录url的提示,甚至一度想去机房看看究竟。
root@ubuntu:/home/ubuntu/cold# curl -fsSL https://tailscale.com/install.sh | sh
Installing Tailscale for ubuntu jammy, using method apt
+ mkdir -p --mode=0755 /usr/share/keyrings
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg
+ tee /usr/share/keyrings/tailscale-archive-keyring.gpg
+ + curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list
tee /etc/apt/sources.list.d/tailscale.list
# Tailscale packages for ubuntu jammy
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu jammy main
+ apt-get update
Hit:1 https://mirror.nju.edu.cn/ubuntu jammy InRelease
Hit:2 https://mirror.nju.edu.cn/ubuntu jammy-updates InRelease
Hit:3 https://mirror.nju.edu.cn/ubuntu jammy-backports InRelease
Hit:4 https://mirror.nju.edu.cn/ubuntu jammy-security InRelease
Get:6 https://dl.google.com/linux/chrome/deb stable InRelease [1,825 B]
Get:7 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1,484 B]
Hit:8 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:9 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:5 https://packages.microsoft.com/repos/code stable InRelease
Err:6 https://dl.google.com/linux/chrome/deb stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E88979FB9B30ACF2
Get:10 https://pkgs.tailscale.com/stable/ubuntu jammy InRelease
Hit:11 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Fetched 8,056 B in 2s (3,972 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E88979FB9B30ACF2
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://deb.nodesource.com/node_20.x nodistro InRelease' doesn't support architecture 'i386'
W: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E88979FB9B30ACF2
W: Some index files failed to download. They have been ignored, or old ones used instead.
+ apt-get install -y tailscale tailscale-archive-keyring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tailscale is already the newest version (1.64.0).
tailscale-archive-keyring is already the newest version (1.35.181).
0 upgraded, 0 newly installed, 0 to remove and 529 not upgraded.
+ [ false = true ]
+ set +x
Installation complete! Log in to start using Tailscale by running:
tailscale up
root@ubuntu:/home/ubuntu/cold#
看到tailscale up
说明已经安装成功,并且启动成功了。需要在官网的这一步后,如果你像我一样没有任何登录url弹出,输入这个:
tailscale login
你就看到每一个论坛里提到的这个验证网址了,只需要在你的目前设备上点进去就可以帮助linux
服务器这边做验证,哈哈,不用去机房了。
记得在web设备管理这里,设置key
不过期,我这里设置过了,所以再点击就是Enable key expiry
查看tailscale
状态
systemctl stauts tailscaled
关闭服务
tailscale down
查询 Tailscale 服务分配给你的 IPv4 地址
tailscale ip -4
使用 Visual Studio Code 的 Tailscale 扩展:传送门