我在测试环境中以 root 身份通过 ssh 执行以下命令:
ssh <remote_srv> "apt-get autoremove"
Run Code Online (Sandbox Code Playgroud)
在我的 sshd_config 中,我有“PermitRootLogin without-password”,并且我已将 root 的 id_rsa.pub 添加到远程服务器上的 authorized_keys 文件中。
不过我收到以下错误:
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Run Code Online (Sandbox Code Playgroud)
我已经在 ssh 的 de 手册页中查找了这一点,但无法理解伪术语和 ttys 的解释。
有没有人可以解释上述错误?我想这是一个缺失的选项,但哪个?
两个平台都是 Ubuntu 14.04 LTS。