【Linux】ssh连接或反弹shell无法使用tab、上下方向键等快捷方式

用ssh连接主机或者通过其他各种途径反弹shell时,无法使用tab和上下方向键等快捷方式,只需在shell中输入以下命令:

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

py2,py3均可

发布了33 篇原创文章 · 获赞 2 · 访问量 1467

猜你喜欢

转载自blog.csdn.net/qq_34965596/article/details/103248765