Jay Taylor's notes

back to listing index

Installing SSHPass

[web search]
Original source (gist.github.com)
Tags: SSH os-x howto authentication homebrew macOS sshpass gist.github.com
Clipped on: 2018-05-12

Image (Asset 1/23) alt= fails

$ brew install https://raw.github.com/eugeneoden/homebrew/eca9de1/Library/Formula/sshpass.rb
######################################################################## 100.0%
==> Downloading http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpa
Already downloaded: /Library/Caches/Homebrew/sshpass-1.05.tar.gz
Warning: MD5 support is deprecated and will be removed in a future version.
Please switch this formula to SHA1 or SHA256.
Error: MD5 mismatch
Expected: c52d65fdee0712af6f77eb2b60974ac7
Actual: 687fc45d732e5c45b5830e63f647e978
Archive: /Library/Caches/Homebrew/sshpass-1.05.tar.gz
To retry an incomplete download, remove the file above.

Image (Asset 2/23) alt= Please switch this formula to SHA1 or SHA256.

Image (Asset 4/23) alt= Updated.

Image (Asset 5/23) alt= $brew install http://git.io/sshpass.rb

Image (Asset 6/23) alt= Installing from the Source
Worked as a charm, took < 2min

Image (Asset 7/23) alt= https://sourceforge.net/#!/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz

You get an error page reading "The sourceforge.net website is temporarily in static offline mode." Hence the SHA256 mismatch, since it's downloading an HTML page instead of a tarball. This also explained why the install worked fine for me on one Mac yesterday, but failed on another today. (I'm also finding multiple other installs via Homebrew are failing today, probably all due to the SourceForge outage. SourceForge confirmed.)

I found an alternative URL that worked and updated the sshpass.rb script to point to it:
url 'https://fossies.org/linux/privat/sshpass-1.06.tar.gz'

Installed without issue after saving the updated Ruby script to my server and running the brew install command pointing to that URL.

Image (Asset 8/23) alt= steps
1 : install xcode
2 : brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb

zh-f commented 26 days ago

@lukesUbuntu It really helps! Thanks!

Evgeniy-Odesskiy commented 2 days ago

@lukesUbuntu works form me! Thanks!

Attach files by dragging & dropping, selecting them, or pasting from the clipboard.

Press h to open a hovercard with more details.