问题描述
我正在尝试通过 linux 虚拟机调试在远程主机上运行的 c++ 应用程序。
我的 VM 是 Ubuntu 16.04,远程主机有一个 yocto 构建的 linux 操作系统。
目标和主机之间通信的唯一选择是通过 ssh。
所以我尝试使用ssh隧道来实现远程调试,给出以下命令:
$ gdbserver :5555 ./myApp (in remote host)
$ ssh user@xxx.xxx.xxx.x -L 5555:localhost:5555 (in VM)
$ gdb target remote localhost:5555 (in VM)
但是每次我收到以下错误:
channel 3: open Failed: administratively prohibited: open Failed Remote connection closed.
有人知道我做错了什么吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)