Sample Header Ad - 728x90

scp doesn't work when I use sshpass with password

0 votes
1 answer
483 views
I am trying to transfer files between my file server and raspberry pi, I can't figure out why this doesn't work When I run this in the terminal it works:
scp "/home/testfile.txt" pi@10.51.112.139:"/home/pi"
But this doesn't work:
sudo sshpass -p "Blueberry89" scp "/home/testfile.txt" pi@10.51.112.139:"/home/pi"
there isn't any output from the command either I have tried this both ways, on my server and the pi, neither worked. I'm sure it's just something really little, but I can't find out whats wrong.
Asked by tommyokie (11 rep)
Jan 21, 2023, 04:31 AM
Last activity: Jan 21, 2023, 04:58 PM