V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yantianqi
V2EX  ›  程序员

centOS7 vsftpd 问题

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

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

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

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

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