ssh by user and password code example
Example 1: ssh user password example
sshpass -p 'YourPassword' ssh user@host
Example 2: how to log into a remote linux server
ssh [username]@[ip]
sshpass -p 'YourPassword' ssh user@host
ssh [username]@[ip]