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'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章