我正在使用保险丝/sshfs 安装,到目前为止工作正常。现在我不得不重新安装服务器系统并突然出现经典read: Connection reset by peer错误。我正在使用公钥身份验证并将我的密钥复制到新安装的系统。正常的 ssh 登录工作正常。我将日志更改为调试,但遗憾的是这并没有给我任何有用的信息:
sshd[2077]: debug1: Forked child 2198.
sshd[2198]: Set /proc/self/oom_score_adj to 0
sshd[2198]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
sshd[2198]: debug1: inetd sockets after dupping: 3, 3
sshd[2198]: Connection from 192.168.1.6 port 47991
sshd[2198]: debug1: Client protocol version 2.0; client software version OpenSSH_6.1p1 Debian-4
sshd[2198]: debug1: match: OpenSSH_6.1p1 Debian-4 pat OpenSSH*
sshd[2198]: debug1: Enabling compatibility mode for protocol 2.0
sshd[2198]: debug1: Local version string SSH-2.0-OpenSSH_6.1p1 …Run Code Online (Sandbox Code Playgroud) 我刚刚从 Ubuntu 12.04 升级到 12.10。在此之前,我备份了运行良好的 autofs 配置。我将旧行附加/etc/auto.master到新行:
+dir:/etc/auto.master.d
+auto.master
/mnt /etc/auto.sshfs uid=1000,gid=1000,--timeout=30,--ghost,--verbose
Run Code Online (Sandbox Code Playgroud)
我/etc/auto.sshfs看起来像这样:
mymount -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#myuser@mydomain:/mnt/mymount
Run Code Online (Sandbox Code Playgroud)
我手动尝试了这个,Connetion reset by peer所以我添加了选项IdentityFile=/home/myuser/.ssh/id_rsa。现在,当我尝试访问/mnt(使用手动和自动文件)时会发生这种情况:
myuser@laptop /mnt % la
ls: cannot access mymount: No such file or directory
total 4
drwxr-xr-x 3 root root 0 Oct 19 10:34 ./
drwxr-xr-x 25 root root 4096 Oct 18 23:17 ../
d????????? ? ? ? ? ? mymount/
Run Code Online (Sandbox Code Playgroud)
我的相关条目/var/log/syslog是这样的:
Oct 19 00:17:56 laptop automount[1250]: attempting to …Run Code Online (Sandbox Code Playgroud) 我正在尝试为 gtksourceview 编写自己的语法突出显示。如果完成,它应该在文本文件中突出显示吉他和弦。这是我未完成的文件:
<?xml version="1.0" encoding="UTF-8"?>
<language id="tab" _name="Tab" version="2.0" _section="Others">
<metadata>
<property name="mimetypes">text/plain</property>
<property name="globs">*.txt;*.tab</property>
</metadata>
<styles>
<style id="chord" _name="Chord" foreground="blue" bold="true"/>
</styles>
<definitions>
<context id="chord" style-ref="chord" class="no-spell-check">
<match>[A-H]</match>
</context>
<context id="tab">
<include>
<context ref="chord"/>
</include>
</context>
</definitions>
</language>
Run Code Online (Sandbox Code Playgroud)
我希望突出显示的文本中每个大写字母 A 到 H 都是蓝色且粗体的。将文件保存到/usr/share/gtksourceview-3.0/language-specs,我可以在 GEdit 中选择它。但文本中没有突出显示任何内容。
谁能告诉我我做错了什么?