我正在尝试通过我无法控制的方式连接我LocalClient的计算机RemoteHost。JumpHost我可以完全控制client和RemoteHost(管理员权限)
我可以通过 ssh 完美RemoteHost连接到:LocalClient
ssh -tX relayUserName@JumpHost remoteUser@RemoteHostIP
我的 ~/.ssh/config 文件的配置为:
Host RemoteHost
ProxyCommand ssh -W %h:%p JumpHost
Run Code Online (Sandbox Code Playgroud)
现在,如果我尝试通过隧道RemoteHost,我会收到以下错误:
channel 0: open failed: administratively prohibited: open failed
stdio forwarding failed
Run Code Online (Sandbox Code Playgroud)
使用ssh -v,我可以获得更多信息
Authenticated to <JumpHost> ([JumpHostIP]:22).
debug1: channel_connect_stdio_fwd RemoteHostIP:22
debug1: channel 0: new [stdio-forward]
debug1: getpeername failed: Bad file descriptor
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
channel 0: open failed: administratively prohibited: open failed
stdio forwarding failed
ssh_exchange_identification: Connection closed by remote host
Run Code Online (Sandbox Code Playgroud)
基于这个答案sshd_config,我检查了in /etc/ssh/onRemoteHost和(手动)set的值
AllowTcpForwarding yes
问题仍然存在,我不知道还能尝试什么。
RemoteHost和LocalClient:Kubuntu 18.04 LTSRemoteHost和LocalClient:OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 JumpHost通过 ssh -v debug1 到达):debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
Run Code Online (Sandbox Code Playgroud)
附带说明一下,我需要通过隧道RemoteHost访问运行的 Jupyter Lab 实例,--no-browser --port=8889并将其转发到我的LocalClient端口 8888,以便通过浏览器远程访问我的实验localhost:8888
| 归档时间: |
|
| 查看次数: |
2247 次 |
| 最近记录: |