• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yantianqi
V2EX  ›  程序员

centOS7 vsftpd 问题

  •  
  •   yantianqi · Dec 2, 2017 · 3422 views
    This topic created in 3258 days ago, the information mentioned may be changed or developed.

    安装好 vsftpd 之后,只能用 sftp 登录?
    怎么设置用户不能访问上级目录呢?

    7 replies  •  2017-12-03 19:52:21 +08:00
    xfspace
    xfspace
    Dec 2, 2017 via Android
    1
    http://lmgtfy.com/?q=Centos+vsftpd+config+example

    SFTP 是 SSH File Transfer Protocol,用的是 SSH。和 vsftpd 无关,SSL over FTP 叫 FTPS。
    看了下楼主的发帖,可以 block。
    msg7086
    msg7086
    Dec 2, 2017
    2
    不是。可以用 FTP 登录。SFTP 和 FTP 无关。
    digimoon
    digimoon
    Dec 2, 2017
    3
    你用 sftp 登录的时候是 sshd 在服务,不是 vsftpd
    srx1982
    srx1982
    Dec 2, 2017
    4
    换 pure-ftpd 吧,vsftpd 坑略多
    pq
    pq
    Dec 2, 2017
    5
    要想限制用户可访问的目录,你还真不能用 sftp,vsftpd 配置文件并不复杂,每一行都有注释说明,你自己慢慢折腾吧,这事没法指望别人帮助。。。
    Hardrain
    Hardrain
    Dec 3, 2017
    6
    要用配置文件中的 chroot

    这是我的 Solution
    https://hr98.xyz/vsftpd-chroot/
    FunyKis
    FunyKis
    Dec 3, 2017
    7
    sftp 配置文件通常在 /etc/ssh/sshd_config,和 vsftpd 无关。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1400 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:50 · PVG 04:50 · LAX 12:50 · JFK 15:50
    ♥ Do have faith in what you're doing.