ssh无法登录,提示Pseudo-terminal will not be allocated because stdin is not a terminal.


当远程通过ssh登录主机时出现Pseudo-terminal will not be allocated because stdin is not a terminal. 错误
 
字面意思是伪终端将无法分配,因为标准输入不是终端。
 
所以需要增加-t -t参数来强制伪终端分配,即使标准输入不是终端。
to force pseudo-tty allocation even if stdin isn't a terminal.
 
参考样例如下:
ssh -tt  user1@host1 -p 9527


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM