我想使用 git ftp 使用用户/密码访问 SFTP 服务器,但它不起作用。
git ftp 推送 -vv
lun. 07 sept. 2020 14:08:31 CEST: Syncroot is './'.
lun. 07 sept. 2020 14:08:31 CEST: Host is 'myhost:port'.
lun. 07 sept. 2020 14:08:31 CEST: User is 'user'.
lun. 07 sept. 2020 14:08:31 CEST: Password is set.
lun. 07 sept. 2020 14:08:31 CEST: CACert is ''.
lun. 07 sept. 2020 14:08:31 CEST: Insecure is '0'.
lun. 07 sept. 2020 14:08:31 CEST: Proxy is ''.
lun. 07 sept. 2020 14:08:31 CEST: Path is ''.
lun. 07 sept. 2020 14:08:31 CEST: The remote sha1 is saved in file '.git-ftp.log'.
lun. 07 sept. 2020 14:08:31 CEST: Check if curl is functional.
lun. 07 sept. 2020 14:08:31 CEST: Retrieving last commit from sftp://user:***@myhost:port/.
* Trying myhost:port...
* TCP_NODELAY set
* Connected to myhost (myhost) port port (#0)
#=#=- # # * User: user
* Known hosts: /home/user/.ssh/known_hosts
#=O=# # # * Authentication using SSH public key file
-#O=- # # # -=O#- # # # * Authentication failure
-=O=-# # # # -=O=- # # # # * Closing connection 0
curl: (67) Authentication failure
似乎 git ftp 尝试使用 ssh 密钥连接,但我想使用基本身份验证(用户/密码)。
怎么做 ?
谢谢 !