随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

sshfs -o sshfs_sync,reconnect,ServerAliveInterval=60 xxx: Input/output error

现象:sshfs总是断连,访问mount点,出现  ls: cannot access 'sshfs': Input/output error

原因初探:是底层的ssh连接session断开

解决:想办法保持底层ssh连接session长连接。有很多方式,最简单、最直接的,就是为sshfs提供ssh连接选项 “ServerAliveInterval”

as of:

#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs
#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs
#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs
#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs
#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs
#sshfs  -o sshfs_sync,reconnect,ServerAliveInterval=60 sshfs@10.1.101.3:/data/data1 /sshfs

 

posted on   jinzhenshui  阅读(878)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)

点击右上角即可分享
微信分享提示