我正在尝试安装 FTPS 连接,但无法成功自动安装。我使用的是 AWS Linux。我可以使用以下命令从命令行运行它:
curlftpfs <ipaddress>:/incoming /home/<username>/autohcidev/ -o ssl,no_verify_peer,allow_other,debug
凭证在 /root/.netrc 中指定。该连接似乎工作正常:
FUSE library version: 2.9.4
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.26
flags=0x001ffffb
max_readahead=0x00020000
INIT: 7.19
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
unique: 1, success, outsize: 40
因此我满怀信心地将其添加到 /etc/fstab 中:
curlftpfs#<ipaddress>:/incoming /home/<username>/autohcidev/ fuse ssl,no_verify_peer,allow_other,uid=512,gid=512,umask=0002 0 0
然后我输入
mount -a
我得到:
mount: wrong fs type, bad option, bad superblock on curlftpfs#<ipaddress>:/incoming,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
dmesg | tail 给出以下内容:
[ 2.281634] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
[ 2.343044] ACPI: Power Button [PWRF]
[ 2.345804] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input5
[ 2.411051] ACPI: Sleep Button [SLPF]
[ 2.491384] mousedev: PS/2 mouse device common for all mice
[ 3.525191] EXT4-fs (xvda1): re-mounted. Opts: (null)
[ 3.550044] fuse init (API version 7.26)
[ 3.796345] NET: Registered protocol family 10
[ 3.803184] Segment Routing with IPv6
[ 6.212849] random: crng init done
mount -a 前后是一样的
该用户 ID 和组 ID 在本地服务器上有效。我还尝试了在远程服务器上有效的用户 ID 和组 ID。一些谷歌搜索建议我需要安装某种辅助程序。我按照建议安装了 cifs-utils,但感觉这不太可能,而且确实似乎没有帮助。
sudo yum install nfs-common
在 AWS Linux 上返回以下内容:
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00
amzn-updates | 2.5 kB 00:00
No package nfs-common available.
Error: Nothing to do
因此,此时我认为我需要为 AWS Linux 找到一些等效的东西,但我似乎只能找到有关 EFS 的文档。任何见解都将不胜感激。
答案1
您使用的 fstab 前缀表示法已被弃用。在fstab
手册页中:
mount(8) and umount(8) support filesystem subtypes. The subtype
is defined by '.subtype' suffix. For example 'fuse.sshfs'. It's
recommended to use subtype notation rather than add any prefix
to the first fstab field (for example 'sshfs#example.com' is
deprecated).
这意味着:
curlftpfs#<ipaddress>:/incoming /home/<username>/autohcidev/ fuse ssl,no_verify_peer,allow_other,uid=512,gid=512,umask=0002 0 0
你应该使用:
<ipaddress>:/incoming /home/<username>/autohcidev/ fuse.curlftpfs ssl,no_verify_peer,allow_other,uid=512,gid=512,umask=0002 0 0