python转换终端为tty终端

获取shell,在主机支持python的情况下执行如下命令

python -c 'import pty;pty.spawn("/bin/bash")'