sshpass example

C++
sshpass -p 'password' ssh user@domain
#THIS CAN NEVERTHELESS BE EXTREMELY INSECURE
Source

Also in C++: