Ubuntu端末を使用してsshを使用できない

Ubuntu端末を使用してsshを使用できない

Ubuntu端末を使用してSSH経由で自分のコンピュータの1つに接続しようとしています。 VPNを使用してデバイスのネットワークに接続します。フラグsshを使用すると、次の-vような出力が出てから無期限に停止します。これは他のサーバーでも発生します。ただし、パテを使用してこれらのサーバー/マシンにアクセスすると正常に動作します。openssh-client openssh-serverクライアントに再インストールしましたが、まだ同じ問題が発生します。サーバーに直接アクセスできないため、SSHサーバーをサーバーから削除できません。

salman@salman-Latitude-5580:~$ ssh -v [email protected]
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.1.17.118 [10.1.17.118] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/salman/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.1.17.118:22 as 'administrator'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

ベストアンサー1

ホストがこれをサポートしていない可能性がありますhost key algorithm: ecdsa-sha2-nistp256

Puttyのデバッグ出力をチェックしてサポートされているアルゴリズムを確認し、sshに同じアルゴリズムを指定します。

ssh -o "HostKeyAlgorithms ssh-rsa" user@hostname

おすすめ記事