I would like to automate ssh login from my mac.
It does have a simple solution:
sshpass -p my_password ssh m_username@hostname
but
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:
sshpass
brew install hudochenkov/sshpass/sshpass