bash – How to install sshpass on Windows through Cygwin?
bash – How to install sshpass on Windows through Cygwin?
sshpass is not available as Cygwin package. This means that you need to build and install from source. To build sshpass on Windows (Cygwin):
$ curl -LO http://downloads.sourceforge.net/sshpass/sshpass-1.06.tar.gz
$ md5sum sshpass-1.06.tar.gz
f59695e3b9761fb51be7d795819421f9
Build and install to /usr/local/bin
:
$ tar xvf sshpass-1.06.tar.gz
$ cd sshpass-1.06
$ ./configure
$ make
$ sudo make install
Which installs two files
- the executable
/usr/local/bin/sshpass
- man page
/usr/local/share/man/man1/sshpass.1
Your Cygwin install needs to have the required tools: curl
to download, tar
to extract, and autoconf
, make
and gcc
to build. Ill assume reader familiarity with installing packages on Cygwin.
sshpass is not available as cygwin package. This means that you need to build and install from source.
See for reference on existing alternative
https://www.cygwin.com/ml/cygwin/2015-02/msg00042.html
bash – How to install sshpass on Windows through Cygwin?
This does not directly answer the question How to install sshpass on Windows?, but can be much easier solution if you need to automatically enter the password when ssh-ing to a machine on Windows system, you can use Plink (part of PuTTY).
plink [email protected] -pw your_password
Related posts
- OSError: [WinError 10022] An invalid argument was supplied – Windows 10 Python
- How to solve error installing setuptools python in windows
- python – Pip SSL Error on Windows
- Python os.name return nt on windows 7
- vim – How to enable Python support in gVim on Windows?
- windows – Python command not working in command prompt
- windows – Python 2.7.11 pip not installed