how to install sshpass on Windows (cygwin)

1.7
(18)

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

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. I’ll assume reader familiarity with installing packages on Cygwin.

Similar Posts:

15,217

How useful was this post?

Click on a star to rate it!

Average rating 1.7 / 5. Vote count: 18

No votes so far! Be the first to rate this post.

Scroll to Top