RequestTTY
Specifies whether to request a pseudo-tty for the session. The
argument may be one of: ``no'' (never request a TTY), ``yes''
(always request a TTY when standard input is a TTY), ``force''
(always request a TTY) or ``auto'' (request a TTY when opening a
login session). This option mirrors the -t and -T flags for
ssh(1).
3条答案
按热度按时间3df52oht1#
已经有一个答案here,但我认为this link更好地总结了它。简单地说,使用
-t
标志:字符串
如果您想将其设置到
.ssh/config
文件中,请在ssh_config
手册页中查找RequestTTY
选项:型
x6492ojm2#
我认为问题是该服务没有关联的tty。我发现的一个变通方法是将脚本中的tmux调用更改为
字符串
(username为其启动服务的用户)
sy5wg1nm3#
如果您使用p10k作为zsh主题,如这里所述,您应该将此节放在.zsrc的顶部:
字符串