ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [Linux] SSH 报Warning "Pseudo-terminal will not be allocated ....."

[Linux] SSH 报Warning "Pseudo-terminal will not be allocated ....."

原创 Linux操作系统 作者:tolilong 时间:2016-02-26 22:01:27 0 删除 编辑
Linux SSH 报Warning "Pseudo-terminal will not be allocated because stdin is not a terminal."
SSH已经配置好了


MEMTOTAL=`echo "cat /proc/meminfo | grep -i memtotal" | ssh mon@$LINE`
执行上面这个命令的时候报如下warning:
Pseudo-terminal will not be allocated because stdin is not a terminal.


加入参数-Tq之后不报warning了
MEMTOTAL=`echo "cat /proc/meminfo | grep -i memtotal" | ssh -Tq mon@$LINE`

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1995440/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208675