GithubHelp home page GithubHelp logo

xvjiarui / sshpass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from innerlee/sshpass

0.0 1.0 0.0 184 KB

Mirror of http://sourceforge.net/projects/sshpass/ with support of auto confirmation and 2-Step Verification!

License: Other

Makefile 25.62% Shell 49.93% M4 1.09% C 17.76% Roff 4.95% Ruby 0.65%

sshpass's Introduction

SSHPass

SSHpass offers you the ability to automatically offer a password via SSH when you are prompted for it.

NEW: This fork supports google two-step authentication and auto confirmation with yes.

NOTE: Check here for one-line setup script for non-sudoers.

Usage

export SSHVCODE=YOUR_GOOGLE_AUTHE_SECRET
export SSHPASS=YOUR_SSH_PASSWORD
sshpass -e -y ssh user@host

For jump server, edit the ~/.ssh/config file

LogLevel ERROR

Host *
    User lizz
    ForwardAgent yes
    ServerAliveInterval 60
    ServerAliveCountMax 10

Host jumper
    HostName jumper.jumper.com

Host server
    HostName 1.2.3.4
    ProxyCommand sshpass -e -y ssh -q -W %h:%p jumper

Install

# dependencies
sudo apt install oathtool
sudo apt-get install autoconf

git clone [email protected]:innerlee/sshpass.git
cd sshpass
autoreconf -f -i
./configure --prefix=$HOME/app
make -j && make install

Related Projects

sshpass's People

Contributors

innerlee avatar xvjiarui avatar talebook avatar kevinburke 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.