是否允许分配伪终端解决
2017-02-21 20:07
483 查看
问题
当使用jenkins构建触发器执行ssh命令的时候出现如下错误:Pseudo-terminal will not be allocated because stdin is not a terminal
意思是无法分配一个伪终端,在伪终端执行脚本,可以进行交互;而没有伪终端,则不能进行交互。
解决方案
1.禁止分配伪终端-使用ssh -T2.强制分配伪终端-使用ssh -t 或 ssh -tt
参数描述
-T Disable pseudo-terminal allocation -t Force pseudo-terminal 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 servi ces. Multiple -t options force tty allocation, even if ssh has no local tty
注:此处解决方案采用使用了ssh -T,因为对于自动化来说,基本上不用交互。
相关文章推荐
- 【解决方法】Windows 2000\Windows 2003终端服务器超出最大允许链接数
- 解决远程桌面连接提示"远程终端连接数超过了允许连接数"
- “终端服务器超出了最大允许连接数”的解决方法汇总
- 终端服务器超出了最大允许连接数”的解决方法汇总
- “终端服务器超出了最大允许连接数”的解决方法汇总
- 终端服务器超出了最大允许连接数的解决办法
- “终端服务器超出了最大允许连接数”的解决方法
- 【Vegas原创】终端服务器超出了最大允许连接数 解决方法
- 终端服务器超出了最大允许连接数”的解决方法汇总
- 远程桌面“终端服务器超出了最大允许连接数”的解决
- 终端服务器超出最大允许连接数的解决办法
- windows 2003 终端服务超出最大允许连接数(远程桌面,解决办法)
- 终端服务器超出了最大允许连接数的解决办法
- 终端服务器超出了最大允许连接数的解决办法
- “终端服务器超出了最大允许连接数”的常用解决方法(非软件)
- 终端服务器超出了最大允许连接数的解决办法(原创)
- 终端服务器超出了最大允许连接数的解决办法(转)
- 终端服务器超出了最大允许连接数的解决办法
- 远程桌面连接时提示终端服务器超出了最大允许连接数解决方法小结
- 终端服务器超出最大允许连接 问题 == 已测试,可解决!