I am using script to loggin my VM2 from VM1 (Password of the VM2: fifa):
for i in {a..z}{a..z}{a..z}{a..z}
do
# $i as a password
ssh root@ipaddress
read i
echo $i
done
bit it doesn't work. It always ask me to enter the password. How can I make it to enter password automatically?