Skip to content

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

LogLevelERRORHost*UserlizzForwardAgentyesServerAliveInterval60ServerAliveCountMax10HostjumperHostNamejumper.jumper.comHostserverHostName1.2.3.4ProxyCommandsshpass -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

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages