1
0
mirror of https://github.com/rclone/rclone.git synced 2025-02-14 21:23:01 +02:00
Nick Craig-Wood 5f822f2660 sftp: fix "failed to parse private key file: ssh: not an encrypted key" error
This error started happening after updating golang/x/crypto which was
done as a side effect of:

3801b8109 vendor: update termbox-go to fix ncdu command on FreeBSD

This turned out to be a deliberate policy of making
ssh.ParsePrivateKeyWithPassphrase fail if the passphrase was empty.

See: https://go-review.googlesource.com/c/crypto/+/207599

This fix calls ssh.ParsePrivateKey if the passphrase is empty and
ssh.ParsePrivateKeyWithPassphrase otherwise which fixes the problem.
2020-01-13 11:05:16 +00:00
..
2019-09-30 14:05:49 +01:00
2019-10-10 21:00:41 +01:00
2019-11-14 11:36:44 +00:00
2019-10-02 12:41:52 +01:00
2019-09-30 14:05:49 +01:00
2019-09-30 22:00:24 +01:00
2019-11-14 21:51:34 +00:00
2019-09-30 22:00:25 +01:00
2019-10-05 10:22:43 +01:00