Im trying to get to autologin using expect command, however the remote password keeps being asked, what am i doing wrong??
this is the code:
set timeout -1
spawn ssh user@machine2 data/remote_script.sh
send -- "pass001\r"
send -- "\r"
(remote sript returns a text always, a char string)