前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解决在linux中执行tailscale up却不弹出验证网址【Tailscale】【Linux】

解决在linux中执行tailscale up却不弹出验证网址【Tailscale】【Linux】

作者头像
来杯Sherry
发布2024-04-23 08:08:55
1230
发布2024-04-23 08:08:55
举报
文章被收录于专栏:第一专栏第一专栏

问题

最近有远程办公需求,需要连接内网服务器,又不太想用todesk,于是找到一个安全免费可用的Tailscale · Best VPN Service for Secure Networks,在windows中顺利注册账号后,登陆了我的windows device后,在linux中按照官网流程输入:

代码语言:javascript
复制
curl -fsSL https://tailscale.com/install.sh | sh

并没有弹出任何登录url的提示,甚至一度想去机房看看究竟。

代码语言:javascript
复制
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弹出,输入这个:

代码语言:javascript
复制
tailscale login

你就看到每一个论坛里提到的这个验证网址了,只需要在你的目前设备上点进去就可以帮助linux服务器这边做验证,哈哈,不用去机房了。

提醒

记得在web设备管理这里,设置key不过期,我这里设置过了,所以再点击就是Enable key expiry

查看tailscale状态

代码语言:javascript
复制
systemctl stauts tailscaled

关闭服务

代码语言:javascript
复制
tailscale down

查询 Tailscale 服务分配给你的 IPv4 地址

代码语言:javascript
复制
  tailscale ip -4

使用 Visual Studio Code 的 Tailscale 扩展:传送门

本文参与?腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-04-22,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题
  • 解决
  • 提醒
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com