ssh命令详解

ssh命令

参数

  • -t
-t      Force pseudo-tty allocation.
This can be used to execute arbitrary screen-based 
programs on a remote machine, which can be very useful, e.g. when implementing menu services.  
Multiple -t options force tty allocation, even if ssh has no local tty.

Try ssh -t (or ssh -tt for short) to force pseudo-tty allocation even if stdin isn't a terminal.
【我的理解是:即使想连接的目标主机不是在终端执行,也会强制使用在终端执行。待指正】

  • -T
    Disable pseudo-terminal allocation.

你可能感兴趣的:(Linux)