connect to ssh using username and password code example
Example 1: login to ssh with password
ssh -o PasswordAuthentication=yes user@hostname
Example 2: ssh login
ssh [username]@[ip]
Example 3: use file connect ssh
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]