redpanda-data / redpanda-data/connect

ssh: no common algorithm for host key

Open
#4,351 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

System info

OS

Windows (Windows Server 2022 Datacenter)

redpanda-connect version

4.89.1

Description

I wanted to update my old benthos version to the latest redpanda-connect but it seems there is an issue when connecting via SSH.
My input config:

input:
  label: <redacted>
  sftp:
    address: <redacted>
    credentials:
      username: <redacted>
      password: <redacted>
      host_public_key: <redacted>
    paths: [/*/*.xml]
    codec: all-bytes
    watcher:
      enabled: true
      minimum_age: 1m
      poll_interval: 10m
      cache: ftpcache_nats

For the host_public_key I used the result of ssh-keyscan -p 22 <redacted>.
But my processing log shows:

time="2026-04-27T10:29:06Z" level=error msg="Failed to connect to sftp: connecting to SFTP server: ssh: handshake failed: ssh: no common algorithm for host key; we offered: [ssh-rsa], peer offered: [rsa-sha2-512 rsa-sha2-256]" @service=benthos label=cedris_ftp path=root.input

Additional information

I can connect to the SFTP server via WinSCP just fine.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the SFTP connection from the provided configuration on Windows, then trace the SSH handshake algorithm negotiation that reports the offered host-key algorithms. Compare the configured host_public_key and the server's rsa-sha2-512/rsa-sha2-256 offers. Done means the connection succeeds without weakening host-key verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.