Hello forum,
What is the problem you are having with rclone?
The unix native ssh can connect but rclone fails with
NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange;
What is your rclone version (output from rclone version
)
rclone: Version "v1.54.0"
Which cloud storage system are you using? (eg Google Drive)
S3 as the destination
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
"rclone" "lsf" "--config=tmp.conf" "-vv" "vendor:/"
The rclone config contents with secrets removed.
[state-s3]
type = s3
env_auth = true
region = region
location_constraint = region
acl = bucket-owner-full-control
server_side_encryption = AES256
storage_class = STANDARD
[krx]
type = sftp
host = vendor.ip.address
user = vendor
port = port
use_insecure_cipher = true
A log from the command with the -vv
flag
WRITING TO: tmp.conf
2021/12/29 08:17:26 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "lsf" "--config=tmp.conf" "-vv" "krx:/"]
2021/12/29 08:17:26 DEBUG : Using config file from "/jenkins/workspace/gic/downloaders/krx_kidx_0108/tmp.conf"
2021/12/29 08:17:26 DEBUG : Creating backend with remote "krx:/"
2021/12/29 08:17:26 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:26 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2021/12/29 08:17:27 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:27 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2021/12/29 08:17:27 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:27 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2021/12/29 08:17:28 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:28 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2021/12/29 08:17:29 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:29 DEBUG : pacer: Rate limited, increasing sleep to 2s
2021/12/29 08:17:30 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:32 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:34 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:36 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:38 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1])
2021/12/29 08:17:38 Failed to create file system for "krx:/": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256], server offered: [diffie-hellman-group1-sha1]
Build step 'Execute shell' marked build as failure
Additional infor
The vendor has mentioned their solution supported config are as below.
(1) Key exchange algorithms : GH_GROUP1_SHA1
(2) Encryption algorithms : AES128_CBC, 3DES_CBC, AES256_CBC
(3) Mac algorithms : HMAC_SHA1, HMAC_MD5
(4) Public key algorithms : SSH_RSA, SSH_DSS
So as the error indicates there is a clear mismatch.
The "use_insecure_cipher" does not help , please suggest.
Thanks,
Shirish