我正在尝试在 Windows 上用 C++ 开发一个命令行程序,它使用 putty 来控制 Raspberry Pi。我使用了 Putty 应用程序,它可以 100% 正常工作。但是我尝试使用 plink 可执行文件,以便可以使用我的 C++ 程序控制该程序,但是当我尝试连接到 Pi 时,我得到一个随机字符串。控制台输出如下
C:\Users\user>plink pi@xxx.xxx.xxx.xxx
Using username "pi".
pi@xxx.xxx.xxx.xxx's password:
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May 21 15:59:02 2013 from xxx.xxx.xxx.xxx
←]0;pi@raspberrypi: ~←[01;32mpi@raspberrypi←[00m ←[01;34m~ $←[00m
←]0;pi@raspberrypi: ~←[01;32mpi@raspberrypi←[00m ←[01;34m~ $←[00m
←]0;pi@raspberrypi: ~←[01;32mpi@raspberrypi←[00m ←[01;34m~ $←[00m
(当我按回车时,最后一行再次出现)。
请问有什么帮助吗?