Linux 使用 davfs2 挂载 webdav 共享
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9871270/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mounting webdav shares using davfs2
提问by Jahanzeb Farooq
I am trying to mount a SharePoint directory (located on a Windows server) on my Ubuntu machine using davfs2. I get the "Secure connection truncated" error. Following is what I do and the output (with some omissions):
我正在尝试使用 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
Has anyone got an idea what may cause this problem and how to solve it? Will appreciate your help. Thanks.
有没有人知道可能导致此问题的原因以及如何解决?将感谢您的帮助。谢谢。
回答by sm535
Please take a look into my question at: https://stackoverflow.com/questions/13043417/mounting-a-sharepoint-filesystem-on-linux-using-davfs2
请查看我的问题:https: //stackoverflow.com/questions/13043417/mounting-a-sharepoint-filesystem-on-linux-using-davfs2
It might help you.
它可能会帮助你。
回答by creighto
I needed to add the -o_netdev
option to the mount command. This fixed the "Secure connection truncated" error for me, most of the times. ;^)
我需要将-o_netdev
选项添加到 mount 命令。大多数情况下,这为我解决了“安全连接被截断”错误。;^)