- 一、问题描述
- 二、解决方法
一、问题描述
ssh 登录报错 Pseudo-terminal will not be allocated because stdin is not a terminal:
Pseudo-terminal will not be allocated because stdin is not a terminal二、解决方法
因为标准输入不是终端,所以伪终端将无法分配。 使用 -t -t 强制分配为伪终端:
ssh -t -t root@host

ssh 登录报错 Pseudo-terminal will not be allocated because stdin is not a terminal:
Pseudo-terminal will not be allocated because stdin is not a terminal二、解决方法
因为标准输入不是终端,所以伪终端将无法分配。 使用 -t -t 强制分配为伪终端:
ssh -t -t root@host