当我因“通道 0 上的 PTY 分配请求失败”而被锁定时,如何获得 shell 访问权限

发布于 2024-12-17 11:41:08 字数 221 浏览 3 评论 0原文

我在远程 shell 上安装了 gitosis。运行良好。但现在我无法登录交互式 shell。正如此处所述,似乎gitosis 禁用 tty。我还能把它拿回来吗?我没有远程服务器的根访问权限。

I installed gitosis on a remote shell. It's working fine. But now I can't login to the interactive shell. As told here, it seem gitosis disabled tty. Is there anyway I can get it back? I don't have root access to the remote server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素罗衫 2024-12-24 11:41:08

如果你让你的 ssh 客户端不要求 tty,你也许能够登录,可能通过使用 -T 标志。

例如,

ssh -T remotehost

您将不会得到 shell 提示符,正常的编辑键将不起作用,并且您将无法使用全屏程序,如 vi、emacs 或 less,但您将能够运行简单的 shell 命令。

我不知道如何重新启用 tty,抱歉。

You may be able to login if you make your ssh client not ask for a tty, probably by using the -T flag.

e.g.

ssh -T remotehost

You will not get a shell prompt, the normal editing keys will not work, and you won't be able to use full screen programs such as vi, emacs or less, but you will be able to run simple shell commands.

I don't know how to re-enable the tty though, sorry.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文