Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Emacs Tramp卡在';找到远程shell提示符';在文件获取期间_Shell_Emacs_Freebsd_Tramp_Stty - Fatal编程技术网

Emacs Tramp卡在';找到远程shell提示符';在文件获取期间

Emacs Tramp卡在';找到远程shell提示符';在文件获取期间,shell,emacs,freebsd,tramp,stty,Shell,Emacs,Freebsd,Tramp,Stty,我最近安装了一台新的FreeBSD机器,似乎无法通过Emacs Tramp进行连接。它停留在“Tramp:foundremoteshell提示符on'breaked.example.com”上。(主机名更改为匿名) 正如我所看到的,我将调试增加到了10,它被这个命令卡住了 stty icanon erase ^H cols 32767 它在循环中持续执行此命令。完整日志可在以下位置下载: 来自breake.example.com的“stty-a” speed 9600 baud; 65 row

我最近安装了一台新的FreeBSD机器,似乎无法通过Emacs Tramp进行连接。它停留在“Tramp:foundremoteshell提示符on'breaked.example.com”上。(主机名更改为匿名)

正如我所看到的,我将调试增加到了10,它被这个命令卡住了

stty icanon erase ^H cols 32767
它在循环中持续执行此命令。完整日志可在以下位置下载:

来自breake.example.com的“stty-a”

speed 9600 baud; 65 rows; 32767 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
    -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
    -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
    brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl tab0 -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
    -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^@; eof = ^D; eol = <undef>;
    eol2 = <undef>; erase = ^H; erase2 = ^T; intr = ^C; kill = ^U;
    lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
    status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
速度9600波特;65行;32767列;
lflags:icanon isig iexten echo-echok echoke-echonl echoctl
-echoprt-altwerase-noflsh-tostop-flusho-pendin-NokerInfo
-extproc
iflags:-istrip icrnl-inlcr-igncr ixon-ixoff ixany imaxbel-ignbrk
brkint-inpck-ignpar-parmrk
oflags:opost onlcr-ocrnl tab0-onocr-onlret
cflags:cread cs8-parenb-parodd hupcl-clocal-cstopb-crtscts-dsrflow
-dtrflow-mdmbuf
cchars:丢弃=^O;dsusp=^@;eof=^D;eol=;
eol2=;擦除=^H;擦除2=^T;intr=^C;杀死你;
lnext=^V;最小值=1;退出=^\;重印=^R;开始=^Q;
状态=^T;停止=^S;susp=^Z;时间=0;werase=^W;
我有一台稍旧的OpenBSD机器,这个Emacs Tramp客户端可以很好地使用它,working.example.com。连接到此计算机的日志位于

来自working.example.com的“stty-a”

speed 9600 baud; 65 rows; 166 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc -xcase
iflags: -istrip icrnl -inlcr -igncr -iuclc ixon -ixoff ixany imaxbel
        -ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -onocr -onlret -olcuc oxtabs -onoeot
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^@; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;
速度9600波特;65行;166列;
lflags:icanon isig iexten echo-echok echoke-echonl echoctl
-echoprt-altwerase-noflsh-tostop-flusho pendin-Nokerinfo
-extproc-xcase
iflags:-istrip icrnl-inlcr-igncr-iuclc ixon-ixoff ixany imaxbel
-ignbrk brkint-inpck-ignpar-parmrk
oflags:opost onlcr-ocrnl-onocr-onlret-olcuc oxtabs-oneot
cflags:cread cs8-parenb-parodd hupcl-clocal-cstopb-crtscts-mdmbuf
cchars:丢弃=^O;dsusp=^@;eof=^D;eol=;
eol2=;擦除=^H;intr=^C;杀死你;lnext=^V;
最小值=1;退出=^\;重印=^R;开始=^Q;状态=^T;
停止=^S;susp=^Z;时间=0;werase=^W;
我在breake.example.com上修改了stty设置,以模仿working.example.com的设置,但没有成功。我不太了解所有的stty设置。一个可能的攻击途径是“stty pendin”,stty的主页上说这与icanon有关。然而,我无法在breake.example.com上设置-pendin通过登录脚本或手动登录后执行stty-pendin不会导致设置“-pendin”


在这一点上,我完全迷失了方向,任何帮助都将不胜感激。提前谢谢你

读取跟踪文件时,存在几个问题

  • 你明白了吗

    ControlPath "/var/folders/y8/zyh_szbx38s64w6_3_6nlhtm0000gp/T/tramp.5709SZd.smutt@broken.example.com:1345.RPyknjfNbHeeMjoQ" too long for Unix domain socket
    
  • 很可能,您的本地计算机运行OSX,并且您捕获了错误。这在Emacs24.5中已经解决了(您应该运行24.4),Tramp似乎没有因此受到阻碍

  • Tramp远程发送命令
    stty icanon erase^H cols 32767
    。命令本身不是问题,但是远程主机返回的转义序列Tramp不理解。当Tramp调用
    /bin/sh
    时,远程运行哪个shell?不管是什么,都必须禁用该shell中的任何花式装饰,如提示设置、屏幕清理等。有关如何实现这一点的建议,请参见《不定期船手册》。暂时禁用对
    ~/.profile
    或shell在初始化期间读取的任何内容的求值