ssh -vvvT失败,“外壳请求在通道0上失败”

时间:2020-01-01 09:43:15

标签: git ssh

在尝试从Windows笔记本电脑设置git SSH时,我看到以下内容。我该如何运作?目前,我看到“ shell请求在通道0上失败”

命令示例:

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

shell请求在通道0上失败

谢谢

2 个答案:

答案 0 :(得分:0)

由于它取决于服务器,因此您需要检查该服务器是否确实在端口7999上侦听SSH连接。
7999似乎是standard SSH port for a BitBucket server,所以请检查该托管服务日志。

然后您可以使用ssh -vvvT git@<server> -p 7999 /bin/bash -i来查看它是否还会产生任何其他信息。

答案 1 :(得分:0)

尝试以管理员身份运行命令:-)

相关问题