ping은 가능하지만 SSH는 불가능합니다(서버가 중단되었을 수 있음).

ping은 가능하지만 SSH는 불가능합니다(서버가 중단되었을 수 있음).

핑할 수는 있지만 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.

관련 정보