使用窗口上的putty对我的arch linux桌面进行ssh。
只对通过emacs tramp远程编辑感兴趣,所以不需要gui。
可以成功地通过putty/eshell连接,但是当我这样做时,它会启动一个新的x服务器,而我在桌面上打开的所有东西都会消失,直到我关闭连接为止。
当它连接时,它会显示启动文本:
plink -ssh user@xxx.xx.x.x
Last login: Sun Jan 15 14:47:30 2017 from xxx.xx.x.x
X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.5.4-1-ARCH x86_64
Current Operating System: Linux archserver 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=xxxxx
Build Date: 19 July 2016 05:54:24PM
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Jan 15 14:48:36 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
01/15/17 14:48:37 - ERROR: Could not translate string to key symbol: "-"
01/15/17 14:48:37 - ERROR: Could not translate string to key symbol: "="
[libi3] ../../i3-4.13/libi3/font.c Using Pango font Source Code Pro, size 8
[libi3] ../../i3-4.13/libi3/font.c X11 root window dictates 106.947368 DPI
i3status: trying to auto-detect output_format setting
i3status: auto-detected "i3bar"然后它就会回传我输入的任何文本。如果我在putty和C-c中,那么x服务器就会被杀死,所有的东西都会按原样返回,除非我能够正确地运行任何命令,并适当地看到它们的效果。但在emacs中做同样的事情只会完全扼杀这种联系。
我有#X11Forwarding no在/etc/ssh/sshd_config。
我对此非常陌生,所以如果我的术语是错误的或者没有足够的信息,我很乐意更新。
发布于 2017-01-15 20:22:09
我认为您已经将startx (或类似的命令)添加到您的一个shell配置文件中。
试着找出哪一个有:
grep startx .*
然后删除登录时启动X的命令,ssh问题就会消失。
通常最好通过使用显示管理器来启动X,比如gdm或更轻量级的替代方案之一。
https://unix.stackexchange.com/questions/337616
复制相似问题