cpanel 서버에서 ssh를 사용하는 방법은 무엇입니까? [닫은] /home/<userlocalmachine>/.ssh/id_rsa type

cpanel 서버에 입장하고 싶지만 할 수 없습니다. 이것이 내가 한 일입니다. cpanel에서 내 서버의 로그인 페이지로 이동하여 들어갔습니다.

보안-> SSH 액세스-> SSH 키 관리-> 새 키 생성-> 뒤로-> 공개 키-> 관리-> 권한 부여-> 뒤로

그 후 :

개인 키를 다운로드하고 .ssh (내 로컬 컴퓨터) 디렉토리에 복사하고 마침내이 명령을 사용하려고했습니다.

ssh <usernameserver>@<serverip>

그러나 … 나는 ssh -vvv이것을 사용하여 거부 연결을 얻습니다.

penSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "<ipserver>" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to <ipserver> [<ipserver>] port 22.
debug1: Connection established.
debug1: identity file /home/<userlocalmachine>/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/<userlocalmachine>/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
ssh_exchange_identification: read: Connection reset by peer

내가 뭘 잘못 했어?

내 OS는 우분투 16.04입니다



답변

ssh_exchange_identification: read: Connection reset by peer

이것은 본질적으로 원격 서버가 클라이언트로부터 TCP 연결을 수락 한 후 즉시 닫았다는 것을 의미합니다. 아직 데이터 교환이 이루어지지 않았습니다. 서버가 호스트 키를 클라이언트로 보내지 않았으며 클라이언트는 아직 인증을 시도하지 않았습니다.

특히, “연결 재설정”은 이것이 “비정상”근접임을 의미합니다. 즉, 연결을 처리하는 ssh 서버 프로세스가 정상적인 방식으로 연결을 닫지 않고 충돌하거나 종료되었습니다. 또는 연결 요청을 차단하는 방화벽으로 인해 연결 재설정이 발생할 수도 있습니다.

설명은 다음 중 하나 일 수 있습니다.

  1. 원격 ssh 서버 프로그램이 시스템 연결을 허용하지 않도록 구성되었습니다.
  2. 원격 ssh 서버 프로그램이 작동하지 않습니다
  3. 원격 서버에 문제가 있습니다 (예 : 메모리 부족)
  4. 일부 라우터 또는 방화벽이 이러한 연결 시도를 방해합니다

이 문제를 완전히 해결하려면 ssh 서버 프로그램이 이러한 연결을 끊는 이유를 파악하기 위해 서버로 들어가야합니다. cpanel에 대해서는 아무것도 모르지만 ssh 서버는 오류 메시지를 syslog에 로깅하여 발생하는 상황을 이해하는 데 도움이 될 수 있습니다.


답변