SFTP 不工作

SFTP not working

我有一个 CentOS 服务器,我在其中安装了 vsftpd 服务,但是我收到错误

bash: sftp: 找不到命令

which sftp命令也找不到这个服务

详细步骤如下:

作为根用户:

yum install vsftpd
Total download size: 139 k  
Is this ok [y/N]: **y**

配置:

vi /etc/vsftpd/vsftpd.conf

anonymous_enable=YES更改为anonymous_enable=NO

userlist_enable

之后添加userlist_deny=NO

添加允许的用户:

vi /etc/vsftpd/user_list

将内容替换为:

vsftpd userlist
userlist_deny=NO so only allow users in this file
user

开启Vsftpd服务

chkconfig vsftpd on

启动服务

service vsftpd start

有人可以帮助找出我做错了什么吗?

假设vsftpddaemon is now running and can get through any firewall you have, you need to use an ftp client连接到服务器

yum install ftp
ftp x.x.x.x <-- 服务器的 IP 地址

这将表明它正在运行。远程您将需要一个客户端,例如 Filezilla.

sftp 二进制文件由 openssh-clients 包提供。之前安装:

yum install openssh-clients

那么你可以运行 sftp.