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”.