Giter Club home page Giter Club logo

atssh's Introduction

atssh

用python完成的一个简单的基于expect链接远程主机的工具,只用首次连接时输入相关的登录信息(IP地址、用户名、密码、端口),之后登陆只需通过制定ip即可登陆 密码会经过加密之后保存,不会直接保存明文 支持Python2.7+

安装

$ git clone https://github.com/Agnewee/atssh.git
$ cd atssh
$ chmod +x build.sh
$ ./build.sh ~/.zshrc

使用

$ atssh -h
usage: atssh.py [-h] [-P PORT] [-u USER] [-p PWD] [-a] [-d DELETE] [host]

Simple ssh tool for mac

positional arguments:
  host                  Destnation host ip address

optional arguments:
  -h, --help            show this help message and exit
  -P PORT, --port PORT  SSH protacol port (defalt 22)
  -u USER, --user USER  SSH authentication username
  -p PWD, --pwd PWD     SSH authentication password
  -a, --all             List all host ip addresses
  -d DELETE, --delete DELETE
                        Delete the specified host record

# ssh默认访问端口22,若为其他端口需要指定
$ atssh -h 192.168.1.12 -u root -p rootpassword -P 10022

$ atssh -a
*************** All Hosts ***************
Host: 192.168.1.12	Port: 22
*****************************************

$ atssh -d 192.168.1.12
Remove host 127.0.0.1 successfully

$ atssh -d 192.168.1.12
IP not exists in the cache

卸载

$ cd atssh
$ ./remove.sh

待完成

  • 支持通过别名的方式登陆远程主机
  • 初次登陆时,如果登陆成功立即将密码保存
  • 支持scp传输文件

atssh's People

Contributors

qcha0 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

wlya nsdont

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.