I am using RHEL 6.5
If I perform the following command:
# sshpass -p 'xxxx' scp /etc/hosts root@xxclnt16:/home/hosts
It does not return an error, but the file is never actually copied.
I understand the problem is that the site was not authenticated, as I receive the following error if I do not use sshpass:
# scp /etc/hosts root@xxclnt16:/home/hosts
The authenticity of host 'xxclnt16 (10.14.1.18)' can't be established.
RSA key fingerprint is ef:e3:f8:71:cf:47:8b:1c:df:fa:82:ce:48:2a:66:92.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxclnt16,10.14.1.18' (RSA) to the list of known ho...
Why doesnt the command with sshpass report an error. This would be quite helpful. Is there any way to get it to report an error