Giter VIP home page Giter VIP logo

sshnopass's Introduction

sshnopass

THIS PROJECT IS UNDER DEVELOPMENT. USE IT AT YOUR OWN RISK

This program is used to help you fill password and OTP token to ssh automatically. Only x86-64 platform is supported currently!

Build

$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

Configuration

The config file should be placed in $HOME/.ssh/sshnopass_config. Currently, the config file is really simple. Its format WILL changed in the future.

The first line is your password, and the second line is your otp key. The otp key is a base32 encoded string.

Example:

my_password
my_otp_key

Usage

sshnopass command parameters

For example:

sshnopass ssh [email protected]

Why not sshpass

The sshpass use a pty device to communicate with ssh. it will not work in some cases, because sshpass can not simulate all pty operations like a real terminal. And you are unable to avoid passing pty to ssh.

The sshnopass use ptrace(2) to "debug" ssh, and communicate with ssh by hacking its syscall. And once the authentication stage finished, sshnopass detaches ssh. So the ssh directly communicates with your terminal, you can use all terminal features.

Contribute

Feel free to open issues and pull requests using github.

License

GPLv3

sshnopass's People

Contributors

kxuan avatar

Stargazers

Lu Fengqi avatar

Watchers

James Cloos avatar Lu Fengqi 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.