Pseudo-terminal will not be allocated because stdin is not a terminal
来源:互联网 发布:淘宝买手机靠谱吗 编辑:程序博客网 时间:2024/06/05 09:03
遇到一个ssh的问题,执行ssh命令时报“Pseudo-terminal will not be allocated because stdin is not a terminal”
脚本在server上直接运行虽然也报这个错误,但是端口链接是可以的,但脚本用jenkins run时端口链接失败。
...
tunnelArgs = ["ssh", "-T", "-oStrictHostKeyChecking=no","-oUserKnownHostsFile=/dev/null", "-i",
SshManager.privateKey, "-L",
str(self.tunnelLocalPort) + ":" + host + ":" + str(SSH_DEFAULT_PORT),
self.gatewayUser + "@" + self.gateway]
process = Popen(tunnelArgs, stdout=PIPE)
...
RC:stdin不是终端,但是为什么在server上执行脚本虽然有错但仍然能成功,和jenkins执行的区别还不明白
solution: 加参数 -t -t
阅读全文
0 0
- 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
- 脚本调用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错误
- Centos7.1 安装测试Alluxio 出现Pseudo-terminal will not be allocated because stdin is not a terminal 错误的解决
- ssh@host:""ssh切换到其他机器上执行多条命令;Pseudo-terminal will not be allocated because stdin is not a terminal.
- Vim: warning: Input is not from a terminal
- will not be managed by Spring 和was not registered for synchronization because synchronization is n
- WARNING: terminal is not fully functional
- Mac终端出现“terminal pointer being freed was not allocated…”解决办法
- Auto property synthesis will not synthesize property …because it is ‘readwrite’ but it will be synth
- Python is not installed as a framework. The Mac OS X backend will not be a
- 使用kermit串口工具时出现 /dev/ttyS0 is not a terminal device 错误
- msysgit 1.17.10 WARNING: terminal is not fully functional
- 处理使用top提示terminal is not big enough
- 'AddressOf' expression cannot be converted to 'Long' because 'Long' is not a delegate type.解决办法
- delphi-“can't be installed because it is not a design
- FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
- centOS安装搜索工具locate报错
- java Class 的加载时机
- Dynamic Programming:121. Best Time to Buy and Sell Stock
- Windows Practice_Dll&Hook_封装IAT Hook
- Guava 指南 之「通用 Object 方法」
- Pseudo-terminal will not be allocated because stdin is not a terminal
- 数组中的最大递增子序列(Longest Increasing Subsequence<LIS>)
- Java 基础集合遍历删除 for与foreach区别
- 算法第三周Reverse Integer[easy]
- LeetCode#670 Maximum Swap题解(C++版)
- JSON基本使用
- Python Computer Vision Programming学习笔记(一)——Python以及各Package安装
- Java的三大特征
- kali 2017 01下sublime text 3没有办法用中文输入法