どの ssh/sshd 設定項目が「RSA 公開キーの提供」に影響しますか?

どの ssh/sshd 設定項目が「RSA 公開キーの提供」に影響しますか?

私の環境では、すべてのサーバーが SSH 公開キー認証のみをサポートしています。SSH デバッグ情報を読むと、「RSA 公開キーの提供」が異なっていることに気付きました。

ホスト1からサーバ1にsshすると

user@host1:~$ ssh -v server1
...
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/user/.ssh/online.pem
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: /home/user/.ssh/id_rsa

しかし、host2からserver2にsshすると

user@host2:$ ssh -v server2
...
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: jumpbox    <-- even not a file

どの ssh/sshd 構成項目が RSA 公開キーの提供方法に影響しますか? 残念ながら、server1 と server2 は分離されたネットワーク内にあるため、いくつかの要因を排除するために host1 から server2 に ssh したり、host2 から server1 に ssh したりすることはできません。

答え1

それはあなたのマシン上のファイルであるはずです~/.ssh/config。ID ファイルのオプションを含む server2 のセクションが含まれている必要があります。

関連情報