我有bitbucket生成的密钥,所以它们的格式应该是正确的。但是,当我尝试访问它时,它说
SSH public key authentication failed:
Unable to extract public key from private key file:
Method unimplemented in libgcrypt backend'
输出:
git ftp push -vv -u $FTP_USERNAME --remote-root ******* sftp://*/
Sun Apr 29 02:33:53 UTC 2018: git-ftp version 1.3.1 running on Linux 7f8ad68e-00af-4619-86e1-873fbc4c464e 4.14.11-coreos #1 SMP Fri Jan 5 11:00:14 UTC 2018 x86_64 GNU/Linux
Sun Apr 29 02:33:53 UTC 2018: Host is ''.
Sun Apr 29 02:33:53 UTC 2018: User is '$FTP_USERNAME'.
Sun Apr 29 02:33:53 UTC 2018: No password is set.
Sun Apr 29 02:33:53 UTC 2018: Path is '**'.
Sun Apr 29 02:33:53 UTC 2018: Syncroot is ''.
Sun Apr 29 02:33:53 UTC 2018: The remote sha1 is saved in file '.git-ftp.log'.
Sun Apr 29 02:33:53 UTC 2018: CACert is ''.
Sun Apr 29 02:33:53 UTC 2018: Insecure is ''.
Sun Apr 29 02:33:53 UTC 2018: Retrieving last commit from sftp://$FTP_USERNAME:@
Trying 173.236.184.138...
TCP_NODELAY set
Connected to ************
SSH MD5 fingerprint: 158b694980acd0dfcb1b188b2434b20a
SSH authentication methods available: publickey,password
Using SSH private key file ''
SSH public key authentication failed: Unable to extract public key from private key file: Method unimplemented in libgcrypt backend
Failure connecting to agent
Authentication failure
Closing connection 0