简体   繁体   English

在emacs中打开SSH远程文件,出现交互式终端问题

[英]Open ssh remote file within emacs with interactive terminal issues

I try to open a remote ssh file within emacs whose server runs an old ksh version which have gave me some headaches in the past. 我尝试在emacs中打开一个远程ssh文件,该文件的服务器运行旧的ksh版本,这在过去使我有些头疼。 Additionaly, its .profile file is interactive so it requires some user interaction, but that can be solved later. 另外,它的.profile文件是交互式的,因此它需要一些用户交互,但是稍后可以解决。 So far I have the usual: 到目前为止,我的惯常做法是:

tramp file pseudo-terminal will not be allocated because stdin is not a terminal 由于stdin不是终端,因此不会分配tramp文件伪终端

To do bash scripting I solve this problem by applying the -tt flag to ssh , to force interactive session, although I don't know if in this case that's what I need. 为了进行bash脚本编写,我通过将-tt标志应用于ssh来解决此问题,以强制进行交互式会话,尽管我不知道在这种情况下是否正是我所需要的。

How could I personalize the flags used by Cx Cf ' ssh connection, or solve that error message in particular? 我该如何个性化Cx Cf的ssh连接使用的标志,或者特别是解决该错误消息?

~/.ssh/config添加带有适当标志的条目,并使用该条目的昵称作为Tramp文件名中的主机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM