35

GitHub - yinheli/sshw: ? ssh client wrapper for automatic login...

 5 years ago
source link: https://github.com/yinheli/sshw
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

sshw

ssh client wrapper for automatic login

usage

install

use go get

go get -u github.com/yinheli/sshw/cmd/sshw

or download binary: release

config

put config file to: ~/.sshw

config example:

- { name: dev server full configure, user: appuser, host: 192.168.8.35, port: 22, password: 123456 }
- { name: dev server without port, user: appuser, host: 192.168.8.35 }
- { name: dev server without user, host: 192.168.8.35 }
- { name: dev server without password, host: 192.168.8.35 }
- { name: ⚡️ server with emoji name, host: 192.168.8.35 }

# server gourps 1
- name: server group 1
  children:
  - { name: server 1, user: root, host: 192.168.1.2 }
  - { name: server 2, user: root, host: 192.168.1.3 }
  - { name: server 3, user: root, host: 192.168.1.4 }

# server gourps 2
- name: server group 2
  children:
  - { name: server 1, user: root, host: 192.168.2.2 }
  - { name: server 2, user: root, host: 192.168.3.3 }
  - { name: server 3, user: root, host: 192.168.4.4 }

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK