pingは可能ですが、SSHはできません(サーバーがハングしている可能性があります)。

pingは可能ですが、SSHはできません(サーバーがハングしている可能性があります)。

pingはできますがSSHで接続できないサーバーがあります。

SSHの詳細は次のとおりです。

[user@/etc]$ssh -v [email protected]
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 111.111.111.111 [111.111.111.111] port 22.
debug1: Connection established.
debug1: identity file /hey/hey2/.ssh/identity type -1
debug1: identity file /hey/hey2/.ssh/identity-cert type -1
debug1: identity file /hey/hey2/.ssh/id_rsa type -1
debug1: identity file /hey/hey2/.ssh/id_rsa-cert type -1
debug1: identity file /hey/hey2/.ssh/id_dsa type -1
debug1: identity file /hey/hey2/.ssh/id_dsa-cert type -1

上記の出力を見ると停止したようで、ctrl + csshコマンドを閉じました。

SSHは失敗せずに中断されるだけです。

サーバーが停止していると思われます。

ノート:セキュリティのためにIPが変更されました。

ベストアンサー1

リモートサーバーがDNSサーバーとして構成されている場合(で確認/etc/resolv.conf)、SSHサーバーはクライアントIPアドレスのリバースDNSルックアップを試みます。解析できない場合は、アクセスを許可する前に30秒のタイムアウトを待ちます。だからおそらくぶら下がっていないでしょう。

また、127.0.0.1サーバー内部(ローカルIP経由)でSSH経由で動作していることを確認してください。また、sshd -t問題を解決するのに役立ちます/etc/sshd/sshd_config

おすすめ記事