인터넷을 통해 SSH 로깅을 설정하려고 합니다. noip.com
성공적으로 ping할 수 있고 호스트에 도달할 수 있는 DDNS 도메인이 있습니다 . DDNS는 내 라우터에 직접 구성되어 있고 해당 포트(포트 22)가 전달됩니다. 실행하면 다음을 얻습니다.ssh -vv [email protected] -p 8001
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 *
debug2: resolving "foo.ddns.net" port 8001
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to foo.ddns.net [123.456.789.100] port 8001.
debug1: Connection established.
debug1: identity file /home/myuser/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.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
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to foo.ddns.net:8001 as 'myuser'
debug1: SSH2_MSG_KEXINIT sent
라우터 방화벽, OS 방화벽을 비활성화하고 모든 것을 편집 hosts.allow
하고 hosts.deny
허용했습니다. SSH가 성공적으로 인증되도록 하거나 오류 메시지를 표시하려면 어떻게 해야 합니까?