我有一个安装了 vsftpd 服务的 CentOS 服务器,但是我收到了错误
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_deny=NO
在 userlist_enable
之后添加允许的用户:
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
有人可以帮助弄清楚我做错了什么吗?
最佳答案
sftp
二进制文件由 openssh-clients
提供包裹。安装之前:
yum install openssh-clients
然后你可以运行
sftp
.
关于unix - SFTP 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41499880/