ssh: sys_tun_open: /dev/tun0 open failed: No such file or directory 问题的解决


记录一下纪念浪费的3个小时,在新的Mac上发现之前的tunnel脚本都不能用了,总是提示错误:
....
sys_tun_open: /dev/tun0 open failed: No such file or directory
....
Tunnel device open failed...
Could not request tunnel forwarding...

对照了之前的笔记本,发现原来是不必要的把 /etc/ssh_config 里这行启用了:
Tunnel yes

恢复成初始设置后恢复:
# Tunnel no

ssh_config的说明


Tunnel Request tun(4) device forwarding between the client and the server. The
argument must be "yes", "point-to-point" (layer 3), "ethernet" (layer 2), or
"no". Specifying "yes" requests the default tunnel mode, which is
"point-to-point". The default is "no".

作者:车东 发表于:2013-02-05 15:02 最后更新于:2013-02-05 15:02
版权声明:可以转载,转载时请务必以超链接形式标明文章 的原始出处和作者信息及本版权声明

Comments

关于博主已久了,今天第一次留言,感觉博主的文章比一般的seo博客技术性高了许多,有点看不懂,呵呵,很希望以后能向大哥多多学习。

发表一个评论

(如果你此前从未在此 Blog 上发表过评论,则你的评论必须在 Blog 主人验证后才能显示,请你耐心等候。)