This guide explains what sshpass is, how to install sshpass in various Linux and FreeBSD systems, how to use sshpass for non-interactive SSH login, and finally how to perform SSH password automation in shell scripts using sshpass utility in Linux and FreeBSD systems.
Source: LXer – How To Use sshpass For Non-interactive SSH login In Scripts In Linux And FreeBSD