RHEL9: プロキシー経由の ssh が "kex_exchange_identification: Connection closed by remote host" で失敗する
Issue
-
ssh をプロキシー(HTTP、SOCKS など) で設定する場合、以下の例のように ssh セッションは、認証の直前に失敗します。
$ ssh -o ProxyCommand="nc --proxy <proxy:8080> --proxy-type http %h %p" <user>@<remote-system> true kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535
Environment
- Red Hat Enterprise Linux 9
- nmap-ncat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.