Giter VIP home page Giter VIP logo

sshcopy's Introduction

sshcopy

Go Report Card Downloads

自动生成密钥和拷贝密钥到远程服务器(ssh-copy-id), 支持并发批量设置服务器免密

运行方式

1. 命令行参数

./sshcopy -ip [ip] -user [user] -port [port] -pass [pass] [-h|--help] [-s]
所有参数支持多个参数传参, 空格隔开, 例如 -ip "ip1 ip2" -port "port1 port2"
    -h, --help           查看帮助
    -s                   开启极简模式, 只显示必要的日志
    -ip                  server ip, 不传脚本进入交互输入模式
    -user                server user, 多个user时和ip按顺序匹配, user数量不足用最后一个, 不传默认所有ip user为root
    -port                server port, 多个port时和ip按顺序匹配, port数量不足用最后一个, 不传默认所有ip port为22
    -pass                server password, 多个password时和ip按顺序匹配, pass数量不足用最后一个, 不传脚本会提示输入服务器密码

2. 交互输入模式

直接运行./sshcopy即可, 脚本会提示输入要进行免密的服务器ip、端口、用户等信息的

sshcopy's People

Contributors

jrohy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.