使用pscp在树莓派上的文件传输
问题描述:
我想从Windows本地系统发送文件到QEMU树莓pi模拟器。但每当我得到“访问被拒绝”。我已经下降了pscp.exe。 我曾尝试下面的命令:使用pscp在树莓派上的文件传输
pscp.exe -scp myfile.txt [email protected]:/home/pi
pscp.exe -scp myfile.txt [email protected]:~/home/pi
pscp.exe -scp myfile.txt [email protected]:~/Desktop
pscp.exe -scp myfile.txt [email protected]:~
每次它给访问Denied.Please告诉我在哪里,我错了。
答
我可能晚了,但无论如何这可能会帮助某人。
PSCP的语法
pscp [options] source [[email protected]]host:target
目标是目标文件和你输入一个文件夹。此外,您正在使用文件语法/home/pi
而不是文件夹语法/home/pi/
(注意末尾的/斜杠)。所以你要求pscp覆盖你的整个用户文件夹并改为放置源文件。毋庸置疑,这可能会导致一个,至少。
你的命令应该是:
pspc myfile.txt [email protected]:/home/pi/myfile.txt
你可以让不提示发生转移,甚至硬编码密码。
pspc -pw yourpassword myfile.txt [email protected]:/home/pi/myfile.txt
接近你想要达到的目标。 http://stackoverflow.com/questions/23106012/how-to-access-raspberry-pi-qemu-vm-via-network – dhruvvyas90