我正在尝试在终端上安装 SMB 共享。如果服务器名称中没有空格,我可以使用以下命令:
$ mount -t smbfs //user:password@server/resource /Volumes/resource
但是在我的情况下,服务器名称有一个空格,我不知道如何正确传递这样的名称。
我尝试使用双引号或单引号:
$ mount -t smbfs "//user:password@ser ver/resource" /Volumes/resource
mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument
我试图逃离空间:
$ mount -t smbfs //user:password@ser\ ver/resource /Volumes/resource
mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument
我也尝试使用%20
,\x20
和\040
,但出现错误:
mount_smbfs: server connection failed: No route to host
我知道我可以使用 IP 地址或重命名服务器,但这将是一种解决方法,而不是解决方案,我想知道我错过了什么。