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
Please follow the steps below to install sshpass in mac.
sshpass
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