530 Please login with USER and PASS.

安装

npm install --save hexo-deployer-ftpsync

配置

deploy:
  type: ftpsync
  host: xx.xx.xx.xx
  user: bxu123123
  pass: @xx11123
  remote: /htdocs/
  port: 21
  connections: 1
  verbose: false

部署

hexo deploy

报错

INFO  Deploying: ftpsync
Setup
Setup complete.

Collecting
ftp.ls failed.
Collection failed.

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: 530 Please login with USER and PASS.

思考、解决

通过查阅相关资料,发现可能是登录问题。
但是用户名和密码都没错。发现密码中含有@符号。于是乎进行转义\@.还是不行。
只得尝试加单引号。竟然成功了。

pass: '@xx11123'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章