I am trying to copy a file from my remote server to a local one. Here, my script runs it, using "wait" to send the password automatically
scp user@host:/folder/myFile ./
expect "Password: "
send "myPassword"
When I run this, it still asks for a "Password", what's wrong?
Saobi source
share