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

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