Using scp and interactively entering the password the file copy progress is sent to the console but there is no console output when using sshpass in a script to scp files.
$ sshpass -p [password] scp [file] root@[ip]:/[dir]
It seems sshpass is suppressing or hiding the console output of scp. Is there a way to enable the sshpass scp output to console?
sshpass
. If you can, use pubkey authentication. If you need more freedom in control what is going on, you will have to write it asexpect
script, I guess. – Arrio