sshpass with -f is working but not with -p

31 views Asked by At

I tried to transfer a file from one server to another, for that I used sshpass utility and passed the password with -p option. sshpass -p ***** scp test.txt [email protected]:/path

Initially it was working fine, now its not taking the password with -p option. When i passed password via file its taking. sshpass -f file.txt scp test.txt [email protected]:/path, this i have tried and its working fine.

Expectation: I need to pass password with -p only.

Could anyone please let me know what might be the issue?

0

There are 0 answers