Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 898 Bytes

readme.md

File metadata and controls

55 lines (47 loc) · 898 Bytes

JumpServer

跳板机,推荐配合oh-my-zsh服用

Requirements

  • nodejs 8.x+
  • npm 6.x+

Install

npm i @gavinning/jump-server -g

Usage

j2
# or
jumpserver

yaml配置文件

配置文件路径~/.jumpserver.yml

# 统一授权
auth:
    port: 22
    password: 123
    # 默认privateKey优先
    privateKey: '/root/.ssh/your-private-key'
    passphrase: 123
    # 连接超时时间
    readyTimeout: 5000

server:
    centos.shared:
        name: hostname1
        desc: 测试机12
        username: root
        
    192.168.1.222:
        name: hostname21
        desc: 测试机234
        username: work

    192.168.1.31:
        name: hostname3
        desc: 测试机3342
        port: 22
        username: super
        password: 123
        privateKey: '/root/.ssh/your-private-key'
        passphrase: 123