
우분투 20.04를 사용하고 있습니다. ssh는 컴퓨터를 다시 시작할 때까지 계속 작동합니다. 그 이후로 더 이상 ssh를 사용하여 연결할 수 없습니다.
"ssh example.com"은 놀랍게도 작동합니다. 그러나 "ssh 8.8.8.8" 또는 "ssh google.com"은 "네트워크에 연결할 수 없습니다"를 출력하고 telnet google.com 22는 브라우저에서 탐색할 수 있지만 "네트워크에 연결할 수 없습니다"를 표시합니다.
/etc/ssh/ssh_config에는 "포트 22"가 포함되어 있습니다.
나는 인터넷에서 찾을 수 있는 모든 것을 시도했습니다. 내 생각엔 네트워크에 도달하기 전에 ssh 요청이 차단된 것 같은데, 이 문제를 해결하는 방법을 모르겠습니다.
감사해요
편집: SSH[이메일 보호됨]-vvv는 비밀번호를 요청하지만 이제는 다음과 같이 표시됩니다.
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/antoine/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 19: Including file /etc/ssh/ssh_config.d/ssh_ant.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/ssh_ant.conf
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 18.198.187.192 is address
debug2: ssh_connect_direct
debug1: Connecting to 18.198.187.192 [18.198.187.192] port 22.
debug1: connect to address 18.198.187.192 port 22: Connection timed out
ssh: connect to host 18.198.187.192 port 22: Connection timed out
답변1
@EduardoTrápani는 "ping"도 요청한 IP 주소에 액세스할 수 없기 때문에 SSH 문제가 아니라 네트워크 문제일 수 있음을 알아냈습니다.