我想在我的ssh_config文件中设置一个SSH连接来使用-N ssh标志。 我找不到任何与此参数相匹配的configuration关键字。 我只使用端口转发连接,我希望它使用-N每次我执行ssh host 。 我使用mosh作为交互式shell。
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).
我相当肯定你不能这样做,并且喜欢你,我无法以你想要的方式find一种方法。 如果inputssh -N host不上诉,那么你总是可以尝试创build一个别名,如果mosh支持它。