'sshpass' command can be used to provide password runtime while logging into a server over ssh.
Installation
O/S - Centos 6.5
Download rpm -
wget http://pkgs.repoforge.org/sshpass/sshpass-1.05-1.el6.rf.x86_64.rpm
Install -
rpm -ivh sshpass-1.05-1.el6.rf.x86_64.rpm
Run -
sshpass -p 'XXXXX' ssh username@server.test.com