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

tolilong發表於2016-02-26
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部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1995440/,如需轉載,請註明出處,否則將追究法律責任。

相關文章