现象: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

 

相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-09-18
  • 2021-12-01
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案