npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quick-ssh-new

v1.0.2

Published

🚀 Quick-SSH - 仿 Docker 命令行风格的 PowerShell SSH 连接管理工具

Downloads

25

Readme

Quick-SSH 🚀

仿 Docker 命令行风格的 PowerShell SSH 连接管理工具

License Platform PowerShell

一键保存、管理、连接 SSH 服务器,告别记忆繁琐的 IP、端口和密钥路径。


安装

方式一:npm 全局安装(推荐)

npm install -g quick-ssh

安装完成后,重启 PowerShell 终端即可使用 qssh 命令。

安装脚本会自动将 Import-Module 写入你的 PowerShell 配置文件 ($PROFILE),重启终端后永久生效。

方式二:手动加载

# 下载本仓库,在 Quick-SSH.psm1 所在目录执行:
Import-Module .\Quick-SSH.psm1 -DisableNameChecking

快速入门

# 添加一个 SSH 连接
qssh add my-server [email protected]:22 --key C:\Users\You\.ssh\id_rsa

# 一键连接
qssh my-server

# 列出所有连接
qssh ps

# 删除连接
qssh rm my-server

命令参考

qssh ps [关键词]

列出所有已保存的 SSH 连接(对应 docker ps)。

| 列 | 说明 | |----|------| | 别名 | 连接的自定义名称 | | IP 地址 | 服务器主机名或 IP | | 账号 | 登录用户名 | | 端口 | SSH 端口(默认 22) | | 私钥路径 | 认证私钥文件路径 |

示例:

# 列出全部连接
qssh ps

# 筛选包含 "生产" 的连接
qssh ps 生产

# 无连接时的提示
# → 当前没有已保存的 SSH 连接。使用 'qssh add' 添加一个。

qssh add <别名> <用户名@IP:端口> [--key <私钥路径>]

新增 SSH 连接记录(对应 docker run 的添加语义)。

参数说明:

| 参数 | 必填 | 默认值 | 说明 | |------|------|--------|------| | 别名 | ✅ | - | 连接的唯一标识名 | | 用户名@IP:端口 | ✅ | - | [email protected][email protected]:2222 | | --key / -k | ❌ | %USERPROFILE%\.ssh\id_rsa | 私钥文件路径 |

示例:

# 使用默认端口 22 和默认密钥
qssh add my-vm [email protected]

# 指定端口和密钥
qssh add prod-server [email protected]:2222 --key D:\keys\prod_id_rsa

# 支持 -k 简写
qssh add test-vm [email protected] -k C:\Users\Me\.ssh\test_rsa

# 别名重复会报错
# → 错误:别名 'my-vm' 已存在,请使用其他名称。

qssh rm <别名>

删除指定别名的 SSH 主机配置(对应 docker rm)。

qssh rm my-vm
# → ✔ 已删除 SSH 连接 'my-vm'。

qssh rm unknown
# → 错误:别名 'unknown' 不存在。使用 'qssh ps' 查看可用连接。

qssh <别名>

一键连接 SSH 服务器。自动读取保存的 IP、账号、端口、私钥发起会话。

内置兼容老旧 ssh-rsa 密钥协商参数 -o HostKeyAlgorithms=+ssh-rsa,无需手动添加。

qssh my-server
# → 正在连接到 'my-server' ([email protected]:22) ...

qssh export <文件路径>

将全部主机配置导出到指定 JSON 文件。

qssh export D:\backup\ssh-hosts.json
# → ✔ 已导出 3 个连接到 'D:\backup\ssh-hosts.json'。

qssh import <文件路径>

从外部 JSON 文件批量导入连接,自动跳过别名重复的记录。

qssh import D:\backup\ssh-hosts.json
# → ✔ 导入完成:新增 5 个,跳过 2 个(别名重复)。

qssh help

显示帮助信息。


Tab 自动补全

输入 qssh 后按 Tab 键,可自动补全:

  • 子命令psaddrmexportimporthelp
  • 已保存的主机别名:快速选择要连接的服务器

配置文件

所有连接数据存储在以下位置,不会在卸载时删除

%USERPROFILE%\.quickssh\hosts.json

示例配置文件内容:

[
    {
        "alias": "my-server",
        "host": "192.168.1.100",
        "user": "root",
        "port": 22,
        "key": "C:\\Users\\You\\.ssh\\id_rsa"
    }
]

卸载

npm uninstall -g quick-ssh

卸载时:

  • ✅ 自动从 $PROFILE 中移除 Import-Module 配置
  • 保留 %USERPROFILE%\.quickssh\hosts.json 用户配置数据

颜色输出说明

| 颜色 | 含义 | |------|------| | 🟢 绿色 | 操作成功 | | 🟡 黄色 | 提示 / 警告 | | 🔴 红色 | 错误 |


项目文件结构

quick-ssh/
├── Quick-SSH.psm1    # 核心 PowerShell 模块(全部逻辑)
├── index.js           # npm 生命周期钩子(安装/卸载自动配置)
├── package.json       # npm 包配置
├── README.md          # 本文档
└── LICENSE            # MIT 许可证

License

MIT