Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在远程外壳上安装了 gitosis。它工作正常。但现在我无法登录交互式 shell。如此处所述,似乎 gitosis 禁用了 tty。无论如何我可以把它找回来吗?我没有远程服务器的 root 访问权限。
如果您使您的 ssh 客户端不要求 tty,您可能能够登录,可能是通过使用-T标志。
-T
例如
ssh -T remotehost
您将不会得到 shell 提示,正常的编辑键将不起作用,并且您将无法使用 vi、emacs 或更少的全屏程序,但您将能够运行简单的 shell 命令。
不过,我不知道如何重新启用 tty,抱歉。