Brew - sshpass security i come from linux and i know that for automatize shh logins we can use sshpass.  

Looking for the sshpass command on MacOS i get this message:  

machine0:~ roberto$ brew search sshpass
We won't add sshpass because it makes it too easy for novice SSH users to
ruin SSH's security.  


So what is an alternative to reproduce the sshpass behavior with minimal effort?  

I need sshpass to store multiple ssh sessions in my iTerm profiles:
Even though Homebrew has blacklisted sshpass, you can still install it through third-party formula such as hudochenkov's:

brew install hudochenkov/sshpass/sshpass

There are several things to consider before doing this though:


It's a third-party formula which may not be updated as routinely as the brew core, so you could potentially miss out on key security updates.
SSHPass has been blocked for a reason, it's bad practice and there's likely to be a solution other than SSHPass - the page for SSHPass even states that:



  Most user should use SSH's more secure public key authentiaction instead
  
  Sourceforge