Skip to content
forked from talebook/sshpass

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

License

Unknown, GPL-2.0 licenses found

Licenses found

Unknown
LICENSE
GPL-2.0
COPYING
Notifications You must be signed in to change notification settings

innerlee/sshpass

 
 

Repository files navigation

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 git@github.com:innerlee/sshpass.git
cd sshpass
autoreconf -f -i
./configure --prefix=$HOME/app
make -j && make install

Related Projects

About

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

Resources

License

Unknown, GPL-2.0 licenses found

Licenses found

Unknown
LICENSE
GPL-2.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 50.2%
  • Makefile 25.8%
  • C 17.9%
  • Roff 5.0%
  • M4 1.1%