最近、新しい FreeBSD マシンをセットアップしましたが、Emacs Tramp 経由で接続できないようです。「Tramp: Found remote shell prompt on 'broken.example.com'」でスタックしたままになります。(ホスト名は匿名化のために変更されています)
提案されているように、デバッグを 10 に上げましたが、このコマンドでスタックしています。
stty icanon erase ^H cols 32767
このコマンドをループで継続的に実行します。完全なログはhttp://depht.com/temp/emacs-tramp-broken.example.com.txtからダウンロードできます。
壊れた.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;
これと同じ Emacs Tramp クライアント、working.example.com でうまく動作する少し古い OpenBSD マシンがあります。このマシンへの接続のログはhttp://depht.com/temp/emacs-tramp-working.example.com.txtにあります
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;
working.example.com の設定を模倣するために、broken.example.com の stty 設定をいじりましたが、成功しませんでした。すべての stty 設定がよくわかりません。考えられる攻撃手段は 'stty pendin' であり、stty のマニュアル ページには関連する icanon と書かれています。ただし、broken.example.com で -pendin を設定できません。ログイン スクリプトを介して、または手動でログインした後に「stty -pendin」を実行しても、「-pendin」が設定されません。
この時点で、私は完全に道に迷っています。前もって感謝します!!