通道 1:打开失败:管理禁止:打开失败

Ad *_*dum 5 ssh ssh-tunneling raspberry-pi traceroute

我正在尝试使用以下命令设置 SSH 隧道(在 Raspberry Pi 上):(ssh user@terbank.cs.kuleuven.be -L 5672:tabor.cs.kotnet.leuven.be:5672 -N我应该注意我可以,或者至少可以将第一个端口 5672 更改为我想要的任何端口)

这在以前有效,因为我们能够用我的笔记本电脑与 Raspberry Pi 通信,它以相同的方式通过 SSH 连接到该服务器。

Now, after some reboots, we get this error (on the Pi) whenever we try to communicate with the Raspberry Pi:

channel 1: open failed: administratively prohibited: open failed
Run Code Online (Sandbox Code Playgroud)

I already checked /etc/hosts, /etc/network/inferfaces and /etc/ssh/sshd_config to comply with solutions found on the internet.

This is a copy of our traceroute:

pi@raspberrypi ~ $ sudo traceroute -T -p 5672 tabor.cs.kotnet.kuleuven.be
traceroute to tabor.cs.kotnet.kuleuven.be (10.33.14.4), 30 hops max, 60 byte packets
 1  PenO8 (192.168.2.1)  2.033 ms  2.808 ms  3.168 ms
 2  10.8.32.252 (10.8.32.252)  9.274 ms  9.380 ms  9.396 ms
 3  rhmccoy1-vlan176.kulnet.kuleuven.be (134.58.252.17)  9.181 ms  9.158 ms  9.240 ms
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
Run Code Online (Sandbox Code Playgroud)

Cre*_*eek 5

In /etc/ssh/sshd_config make sure the following is uncommented:

AllowTcpForwarding yes
Run Code Online (Sandbox Code Playgroud)

Double check your syntax too:

$ ssh -N -L [local_port]:[endpoint]:[remote_port]  [user]@[host] 
Run Code Online (Sandbox Code Playgroud)

The error you're seeing is a terribly confusing error that is thrown when a forwarded ssh connection simply can't connect.


归档时间:

查看次数:

20483 次

最近记录:

5 年,2 月 前