Mutt 依赖于这里的诅咒,我与迈克尔的讨论:
@hhh:ssh hhh@server.com mutt <--- 这里有什么问题?试图在那里运行 mutt ......
@MichaelMrozek:mutt 使用了curses,这取决于很多终端操作;我想它不喜欢像那样在 ssh 中运行
手册中有条目:
ssh [user@]hostname --
[command]
Run Code Online (Sandbox Code Playgroud)
如何mutt从服务器外部本地运行而无需直接ssh运行mutt?
从 man 1 ssh
-t Force pseudo-tty allocation. This can be used to execute arbitrary
screen-based programs on a remote machine, which can be very useful,
e.g. when implementing menu services. Multiple -t options force tty
allocation, even if ssh has no local tty.
Run Code Online (Sandbox Code Playgroud)
现在mutt有一个 tty 来显示它的菜单。(例如,-tt如果mutt通过来自 的脚本连接到远程,您将使用cron。)
ssh -t hhh@server.com mutt