我正试图使用davfs2在Ubuntu机器上安装一个SharePoint目录(位于Windows服务器上)。我收到"安全连接被截断"错误。以下是我所做的和输出(有一些遗漏):
$ sudo mount -t davfs 'https://<server_url>' /mnt/<mount_directory>/
Please enter the username to authenticate with server
Username: <username>
Please enter the password to authenticate user <username> with server
Password: <password>
/sbin/mount.davfs: the server certificate is not trusted
issuer: <issuer>
subject: <subject>
identity: <identity>
fingerprint: <fingerprint>
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] y
/sbin/mount.davfs: Mounting failed.
Could not read status line: Secure connection truncated
有人知道这个问题的原因和解决方法吗?将感谢您的帮助。谢谢
我需要将-o_netdev
选项添加到mount命令中。这为我修复了大多数情况下的"安全连接截断"错误。;^)
请查看我的问题:https://stackoverflow.com/questions/13043417/mounting-a-sharepoint-filesystem-on-linux-using-davfs2
它可能会对你有所帮助。