为了测试SSH我看你需要使用类似ssh -T [email protected]
:为什么要使用-T使用ssh
根据man ssh
:
-T Disable pseudo-terminal allocation.
-t Force pseudo-terminal 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 alloca-
tion, even if ssh has no local tty.
但我仍然不明确,甚至看完这个,在测试SSH时,使用-T
的目的是什么。
我读了伪终端(https://linux.die.net/man/7/pty),但似乎没有帮助。