尝试从我的Windows笔记本电脑设置git SSH时,我看到以下内容。 我如何让它工作?目前,我看到"通道 0 上的 shell 请求失败">
命令示例:
ssh -vvvT git@<server> -p 7999
Sharing last few lines of the output below
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x20
debug2: client_session2_setup: id 0
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 2097152 rmax 32768
debug3: receive packet: type 100
debug2: channel_input_status_confirm: type 100 id 0
shell request failed on channel 0
外壳请求在通道 0 上失败
谢谢
由于它取决于服务器,因此您需要检查所述服务器是否确实侦听端口 7999 上的 SSH 连接。
7999 似乎是 BitBucket 服务器的标准 SSH 端口,因此请检查托管服务日志。
您可以使用ssh -vvvT git@<server> -p 7999 /bin/bash -i
来查看它是否生成任何其他信息。
尝试以管理员身份运行命令:-(
我只有一个用户有问题。其他人可以登录。在这种情况下,只需重新启动服务器即可解决问题。