Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tssh连接失败: request pty failed: ssh: pty-req failed #173

Open
Runninginsilence1 opened this issue Mar 6, 2025 · 2 comments
Open

Comments

@Runninginsilence1
Copy link

这个问题可能和 tssh本身没有什么关系. 但是我没有找到相关的答案. 所以只能在这里开个issue请教一下

使用tssh连接到远程服务器时, 提示: request pty failed: ssh: pty-req failed
通过重新挂载pty可以得到暂时解决:

mount devpts /dev/pts -t devpts

个人请求一下应该如何杜绝此类问题, 这个还会对sudo命令产生影响: unable to allocate pty:No such device

@lonnywong
Copy link
Member

看看服务器 /etc/fstab 中有没有类似下在的内容,没有的话可以试试加上,然后重启:

devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

@Runninginsilence1
Copy link
Author

看看服务器 /etc/fstab 中有没有类似下在的内容,没有的话可以试试加上,然后重启:

devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

这个方式试过了, 治标不治本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants