이 디버그 정보는 시도한 SSH 연결에 어떤 문제가 있는지에 대해 무엇을 알려줍니까?

이 디버그 정보는 시도한 SSH 연결에 어떤 문제가 있는지에 대해 무엇을 알려줍니까?

제공된 사용자 이름 및 비밀번호 자격 증명을 사용하여 원격 서버에 새로 연결하려고 합니다. 다음 명령으로 연결을 시도합니다.

ssh -vv -p {port} {user}@{host}

다음 출력이 나온 후 3분 동안 중지됩니다.

OpenSSH_5.6p1, OpenSSL 0.9.8y 5 Feb 2013
debug1: Reading configuration data /Users/username/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to {host} [{host}] port {port}.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /Users/username/.ssh/id_rsa type 1
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: identity file /Users/username/.ssh/id_dsa type -1
debug1: identity file /Users/username/.ssh/id_dsa-cert type -1
debug1: ssh_exchange_identification: 220 ProFTPD 1.3.3a Server (Debian) [{host}]

그리고 나는 이것을 얻습니다 :

debug1: ssh_exchange_identification: 421 Login timeout (300 seconds): closing control connection

ssh_exchange_identification: Connection closed by remote host

공개 키를 사용하여 연결을 시도하고 있습니까? 그렇다면 그것은 내 클라이언트에서 오는 것입니까, 아니면 서버에서 오는 것입니까?

이것이 내 고객에게서 나올 수 있다는 이론을 테스트하고,여기에 제공된 명령을 사용하여 비밀번호 인증을 강제로 시도했습니다.:

ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no user@host

하지만 -vv를 사용하면 동일한 출력이 나오며 동일한 지점에서 중지됩니다. 비밀번호를 물어본 적이 없습니다.

클라이언트 문제일까요, 아니면 서버 문제일까요? 문제를 정확히 찾아내기 위해 취할 수 있는 다음 단계는 무엇입니까? 서버는 제가 관리하는 것이 아닙니다. 서버 관리자에게 문제를 조사할 때 무엇을 물어봐야 하는지 알아두면 좋을 것 같습니다.

답변1

ssh_exchange_identification: 220 ProFTPD 1.3.3a ServerSSH 서버가 아닌 FTP 서버가 에서 수신 대기 중인 것으로 보입니다 {port}.

관련 정보