码迷,mamicode.com
首页 > 其他好文 > 详细

Pseudo-terminal will not be allocated because stdin is not a terminal.

时间:2016-12-07 14:30:32      阅读:756      评论:0      收藏:0      [点我收藏+]

标签:pseudo-terminal will not be allocated because stdin is not a terminal.

打算在shell里写脚本调用ssh,突然来个报错:

Pseudo-terminal will not be allocated because stdin is not a terminal.

中文解释:伪终端不会分配因为stdin不是终端。



查看ssh命令帮助得以解决:

-q    Quiet mode.  Causes most warning and diagnostic messages to be suppressed.

-T      Disable pseudo-tty allocation.

技术分享

然后ssh -Tq  用户@主机 -p 端口 即可。

本文出自 “永不放弃! 任志远” 博客,请务必保留此出处http://renzhiyuan.blog.51cto.com/10433137/1880329

Pseudo-terminal will not be allocated because stdin is not a terminal.

标签:pseudo-terminal will not be allocated because stdin is not a terminal.

原文地址:http://renzhiyuan.blog.51cto.com/10433137/1880329

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!