您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

因为stdin不是终端,所以不会分配伪终端

因为stdin不是终端,所以不会分配伪终端

尝试ssh -t -t(或ssh -tt简称)强制伪tty分配,即使stdin不是终端。

从ssh联机帮助页:

-T      Disable pseudo-tty allocation.

-t      Force pseudo-tty allocation.  This can be used to execute arbitrary 
        screen-based programs on a remote machine, which can be very useful,
        e.g. when implementing menu services.  Multiple -t options force tty
        allocation, even if ssh has no local tty.
其他 2022/1/1 18:20:38 有310人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶