Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
覆盆子皮上的叮当声 我试图在C++上开发一个命令行程序,它使用P腻y来控制树莓PI。我已经使用了腻子应用,它的工程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_C++_Ssh_Raspberry Pi_Plink - Fatal编程技术网

覆盆子皮上的叮当声 我试图在C++上开发一个命令行程序,它使用P腻y来控制树莓PI。我已经使用了腻子应用,它的工程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

覆盆子皮上的叮当声 我试图在C++上开发一个命令行程序,它使用P腻y来控制树莓PI。我已经使用了腻子应用,它的工程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,c++,ssh,raspberry-pi,plink,C++,Ssh,Raspberry Pi,Plink,(当我按enter键时,最后一行再次出现) 有什么帮助吗?这是您的shell提示。外观奇怪的字符是shell用于生成彩色终端的控制字符 Plink不正确地遵守终端的设置,否则这些控制字符将永远不会被发送。您应该能够保存putty会话,将终端类型设置为“dumb”,并使用-load选项使用-plink加载这些设置。您好,谢谢您的回复。我在connection->data中将dumb添加到终端类型字符串中。它适用于按enter键时出现的raspberry pi字符串。但是,当我键入诸如ls之类的基本

(当我按enter键时,最后一行再次出现)


有什么帮助吗?

这是您的shell提示。外观奇怪的字符是shell用于生成彩色终端的控制字符


Plink
不正确地遵守终端的设置,否则这些控制字符将永远不会被发送。您应该能够保存putty会话,将终端类型设置为“dumb”,并使用
-load
选项使用
-plink
加载这些设置。

您好,谢谢您的回复。我在connection->data中将dumb添加到终端类型字符串中。它适用于按enter键时出现的raspberry pi字符串。但是,当我键入诸如ls之类的基本命令时,控制字符仍然存在。干杯