Giter VIP home page Giter VIP logo

sshautologin's Introduction

SSHAutoLogin

一个SSH登录服务器的shell脚本,通常我们使用ssh登录服务器都要自己输入密码,而且容易输入错误, 每当遇到这种情况甚是苦恼,下定决心自己写一个不用输入密码自动登录ssh的shell脚本。

安装

  • Centos
curl -s https://www.jiangxianli.com/SSHAutoLogin/install.sh | bash -s centos
  • Ubuntu
curl -s https://www.jiangxianli.com/SSHAutoLogin/install.sh | bash -s ubuntu
  • Mac
curl -s https://www.jiangxianli.com/SSHAutoLogin/install.sh | bash -s mac

使用帮助

  • ssh_login -c - 修改账号配置
  • ssh_login -l - 列出所有账号配置
  • ssh_login -h - 显示帮助文档
  • ssh_login [0-9]+ - 使用列表序号快速登录服务器
  • ssh_login [a-zA-z]+ - 使用配置别名快速登录服务器
  • ssh_login - 列出服务器列表,等待输入后登录服务器

特殊说明

如果密码中含有以下特殊字符,请按照一下规则转义:

  • \ 需转义为 \\\
  • } 需转义为 \}
  • [ 需转义为 \[
  • $ 需转义为 \\\$
  • ` 需转义为 \`
  • " 需转义为 \\\"
  • . 需转义为 \.
如密码为'-OU[]98' 在CONFIG配置中写成'-OU\[]98'
否则,提示要手动输入密码

sshautologin's People

Contributors

jiangxianli avatar xiongwilee avatar yeaseonzhang avatar

Watchers

James Cloos 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.