當遠程通過ssh登錄主機時出現Pseudo-terminal will not be allocated because stdin is not a terminal. 錯誤
字面意思是偽終端將無法分配,因為標准輸入不是終端。
所以需要增加-t -t參數來強制偽終端分配,即使標准輸入不是終端。
to force pseudo-tty allocation even if stdin isn't a terminal.
參考樣例如下:
ssh -tt
user1@host1 -p 9527