We Wont Add Sshpass Because It Makes It Too Easy for Novice Ssh Users to Ruin Sshs Security
11 Answers 11
Reset to default
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Update 2022: Unfortunately, Aleks Hudochenkov is no longer updating his repo. There are a bunch of other repos on GitHub that purport to contain a Homebrew recipe for sshpass. It's up to you which of them (if any) to trust.
Some years have passed and there is now a proper Homebrew Tap for sshpass
, maintained by Aleks Hudochenkov. To install sshpass
from this tap, run:
brew install hudochenkov/sshpass/sshpass
Tap source
answered Jun 28, 2020 at 13:22
smammysmammy
2,210 1 gold badge 14 silver badges 10 bronze badges
8
There are instructions on how to install sshpass here:
https://gist.github.com/arunoda/7790979
For Mac you will need to install xcode and command line tools then use the unofficial Homewbrew command:
curl -L https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb > sshpass.rb && brew install sshpass.rb && rm sshpass.rb
Sybil
2,431 3 gold badges 22 silver badges 36 bronze badges
answered Aug 27, 2015 at 19:59
JSimonsenJSimonsen
2,602 1 gold badge 12 silver badges 12 bronze badges
4
-
In 2020 I found this as the best answer
Aug 31, 2020 at 14:42
-
Unfortunately, that didn't work for me
Error: Calling Non-checksummed download of sshpass formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
Nov 24, 2020 at 13:09
-
Update for 2021:
curl -L https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb > sshpass.rb && brew install sshpass.rb && rm sshpass.rb
Apr 27, 2021 at 9:27
-
Brew has taps now, see some of the other answers...
Feb 3 at 19:49
Another option in 2020 is this homebrew tap, maintained by esolitos
brew install esolitos/ipa/sshpass
answered Sep 14, 2020 at 14:29
shiramyshiramy
697 8 silver badges 13 bronze badges
2
-
This is the only answer which literally answers the question. There are concerns with that - a tiny repo could go rogue (and not be noticed right away). But it is an answer. User is advised to exhaust every possible use case first, as there could be other simpler answers (like maybe if you're dealing with a Dropbear host that doesn't store
authorized_keys
under home directories and that's why your staged public key was rejected, etc)Aug 26, 2021 at 21:16
-
this is work for me on 2022. macbook pro m1
Mar 10 at 2:29
Following worked for me
curl -O -L https://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz cd sshpass-1.06/ ./configure sudo make install
answered Sep 11, 2020 at 6:18
1
Solution provided by lukesUbuntu from github works for me:
Just use brew
$ brew install http://git.io/sshpass.rb
OneCricketeer
156k 18 gold badges 115 silver badges 217 bronze badges
answered Jun 8, 2018 at 3:42
4
-
note: this is out of date and points to an old version of sshpass
Nov 6, 2018 at 1:17
-
@DevisLucato Yes, for the one LF the latest version of sshpass, xcode with sshpass src will lead the way. sourceforge.net/projects/sshpass Good luck.
Nov 6, 2018 at 3:51
-
Error: Non-checksummed download of sshpass formula file from an arbitrary URL is unsupported!
brew extract` orbrew create
andbrew tap-new
to create a formula file in a tap on GitHub instead.`Feb 3 at 20:02
Please follow the steps below to install sshpass
in mac.
curl -O -L https://fossies.org/linux/privat/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz cd sshpass-1.06 ./configure sudo make install
answered Mar 5, 2020 at 9:32
SuperNovaSuperNova
22.3k 6 gold badges 83 silver badges 58 bronze badges
1
-
Needs to be updated to
/linux/privat/sshpass-1.09.tar.gz
Jul 30 at 0:04
I just followed the instructions from this article and it helped,
curl -O -L http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz && tar xvzf sshpass-1.05.tar.gz //This creates a directory sshpass-1.05 cd sshpass-1.05 ./configure make sudo make install
answered Apr 23, 2021 at 11:19
Tom TaylorTom Taylor
3,007 2 gold badges 36 silver badges 55 bronze badges
1
-
Thanks, the linked article provides more context
Jun 21 at 22:09
I found that most of the answers listed here are out of date. To install the latest, I ran this and downloaded directly from sourceforge.net, based on other answers here.
curl -L https://sourceforge.net/projects/sshpass/files/latest/download -o sshpass.tar.gz && tar xvzf sshpass.tar.gz cd sshpass-* ./configure sudo make install
answered Jan 10 at 23:25
tcbcwtcbcw
1,417 2 gold badges 9 silver badges 3 bronze badges
3
-
configure: error: in /Users/ME/sshpass-1.08: configure: error: C compiler cannot create executables See config.log for more details
Mar 15 at 21:45
-
This is better than other answers that use a specific and likely outdated version
Jun 21 at 22:13
-
Worked like a charm
8 hours ago
For the simple reason:
Andy-B-MacBook:~ l.admin$ brew install sshpass Error: No available formula with the name "sshpass" We won't add sshpass because it makes it too easy for novice SSH users to ruin SSH's security.
Thus, the answer to do the curl / configure / install worked great for me on Mac.
answered Apr 6, 2020 at 17:34
user1318024user1318024
313 2 silver badges 5 bronze badges
Just a slight update from the previous answer
curl -O -L https://fossies.org/linux/privat/sshpass-1.09.tar.gz && tar xvzf sshpass-1.09.tar.gz cd sshpass-1.09/ ./configure sudo make install
This Worked as on OCT 2021
answered Oct 6, 2021 at 14:28
Aargh, the problem with the outdated links. Simply go to https://sourceforge.net/projects/sshpass/ Download latest version and then tar xvzf
it and finally cd to the dir where it got unpacked
and install with: ./configure make sudo make install
I suppose this will also work on every OS with supported C sdk installed...
answered Oct 1, 2021 at 8:29
Not the answer you're looking for? Browse other questions tagged macos ssh sshpass or ask your own question.
thorntonhisgused1988.blogspot.com
Source: https://stackoverflow.com/questions/32255660/how-to-install-sshpass-on-mac
Is the source code somewhere? Using something like sshpass without knowing the code is critical
Sep 17, 2020 at 7:07
Error: Your CLT does not support macOS 11. I use 11.2.
Feb 8, 2021 at 7:25
@kjdion84 This helps me:
sudo rm -rf /Library/Developer/CommandLineTools
andsudo xcode-select --install
.Feb 9, 2021 at 13:54
This repository has been archived by the owner. It is now read-only.
so I can't request bump its version to latest sshpass :(Feb 3 at 20:01