Masuk ke SSH dengan kata sandi
ssh -o PasswordAuthentication=yes user@hostname
L
ssh -o PasswordAuthentication=yes user@hostname
# generate ssh keygen on the client
$ ssh-keygen -t rsa -b 2048
$ ssh-copy-id id@server
id@server's password:
# after this you will not be prompted for password again
sshpass -p 'YourPassword' ssh user@host
/home/yourusername/.ssh/id_rsa /home/yourusername/.ssh/id_rsa.pub