SSH失败:通道0上的PTY分配请求失败

所以我用Google搜索错误并检查了serverfault,但解决方案并不合适.大多数结果都是/ dev / pts的问题,但是已经安装了.其他结果是git错误,但机器上没有git.

我的帐户没有被屏蔽,我仍然可以登录控制台.其他用户也有这个问题,所以我不认为它与我的.ssh /中的某些东西有关

我用ssh -vv得到了这个回复:

<snip>
debug1: Next authentication method: password
rogier@server's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 100 id 0
PTY allocation request failed on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

在此之后会话冻结.有谁知道发生了什么事?

最佳答案
好的,谢谢蒂姆. umounting / dev / pts然后mount / dev / pts就可以了.

转载注明原文:SSH失败:通道0上的PTY分配请求失败 - 代码日志