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. 错误

 
字面意思是伪终端将无法分配,因为标准输入不是终端。
 
所以需要增加-tt参数来强制伪终端分配,即使标准输入不是终端。
to force pseudo-tty allocation even if stdin isn't a terminal.
 
参考样例如下:
ssh -tt user1@host1 -p 9527

 

参考地址:https://blog.csdn.net/wyl9527/article/details/72770455
上一篇:Error:Cannot build artifact 'ssm:war exploded' because it is included into a circular depe


下一篇:Job for docker.service failed because the control process exited with error code. See