百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

viking

> DevOps
开源

管理远程机器和 SSH 密钥的简单方法

751 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

管理远程机器和 SSH 密钥的简单方法

维京人 ⛵️

管理远程计算机的简单方法

裸机服务器非常棒。它们让您可以选择运行软件的位置以及如何部署它。您可以完全控制,充分利用服务器的资源。没有限制,没有妥协。这就是真正的自由。 Viking 使与他们合作变得更加容易。

NAME:
   viking - Manage your SSH keys and remote machines

USAGE:
   viking [global options] command [command options]

VERSION:
   v1.0

COMMANDS:
    exec      Execute shell command on machine
    copy, cp  Copy files/folders between local and remote machine
    key       Manage SSH keys
    machine   Manage your machines
    config    Get config directory path
    help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

安装

请参阅 发行版 以查看预先构建的二进制文件。 在 Unix 上:

env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/d3witt/viking@latest

在 Windows cmd 中:

set CGO_ENABLED=0
go install -ldflags="-s -w" github.com/d3witt/viking@latest

在 Windows Powershell 中:

$env:CGO_ENABLED = '0'
go install -ldflags="-s -w" github.com/d3witt/viking@latest

使用方法

️ 添加机器:

$ viking machine add --name deathstar --key starkey 168.112.216.50 [email protected]:3000 73.30.62.32:3001
Machine deathstar added.

[! 注意] 密钥标志不是必需的。如果未指定密钥,则将使用 SSH 代理连接到服务器。

执行命令 (在所有机器上并行执行):

$ viking exec deathstar echo 1234
168.112.216.50: 1234
61.22.128.69: 1234
73.30.62.32: 1234

连接到机器:

$ viking exec --tty deathstar /bin/bash
root@deathstar:~$

️ 复制文件/目录(从/向所有机器并行复制):

$ viking cp /tmp/file.txt deathstar:/tmp/
Success: 3, Errors: 0

从文件中添加 SSH 密钥

$ viking key add --name starkey --passphrase dart ./id_rsa_star
Key starkey added.

生成 SSH 密钥

$ viking key generate --name starkey2
Key starkey2 added.

复制公共 SSH 密钥

$ viking key copy s

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gobare-metalclideploydeployment

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理