我使用XFTP远程链接ECS云服务器上,linux系统的vsftp服务linux
在设置好用户,设定用户目录权限后尝试远程链接服务器
可是没法链接上spa
而后在主机端用 ftp localhost 命令 输入帐号密码后登录 发现仍是没法链接code
而后发现错误是:server
[root@root /]# ftp localhost Trying 127.0.0.1... Connected to localhost (127.0.0.1). 220 (vsFTPd 3.0.2) Name (localhost:root): ftptest 331 Please specify the password. Password: 500 OOPS: cannot change directory:/homw/wwwroot/ftptest Login failed. 421 Service not available, remote server has closed connection
这里没法链接的目录名称有问题, 应该是 /home/wwwroot/ftptestblog
我才意识到设置目录权限的时候出错, 致使ftp尝试访问不存在的目录ci
可是不知道怎么修改目录rem
所以我在linux上从新添加了一个用户, 并从新设置了用户目录权限, 添加了vsftpd 用户列表io
而后再次访问时没有出错class
[root@root /]# ftp localhost Trying 127.0.0.1... Connected to localhost (127.0.0.1). 220 (vsFTPd 3.0.2) Name (localhost:root): ftptest1 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files.
且XFTP能够正常链接