跳至內容

Can't connect to my EC2 instance

0

Using Windows machine. Tried to host another app on my EC2 and suddenly it disconnected and stopped responding in every terminal. It says connection timed out. I literally didnt change anything there except for created a folder and copied there my files from another app. Maybe my IP is in the black list or something? This is the log and the ssh key is in the same place, I didnt change anything.

[01:10:48.769] Log Level: 2 [01:10:48.779] SSH Resolver called for "ssh-remote+3.120.179.73", attempt 1 [01:10:48.780] "remote.SSH.useLocalServer": false [01:10:48.780] "remote.SSH.useExecServer": true [01:10:48.780] "remote.SSH.showLoginTerminal": false [01:10:48.781] "remote.SSH.remotePlatform": {"3.120.179.73":"linux"} [01:10:48.781] "remote.SSH.path": undefined [01:10:48.781] "remote.SSH.configFile": C:\Users\Olga Orlova.ssh\config [01:10:48.781] "remote.SSH.useFlock": true [01:10:48.781] "remote.SSH.lockfilesInTmp": false [01:10:48.781] "remote.SSH.localServerDownload": auto [01:10:48.781] "remote.SSH.remoteServerListenOnSocket": false [01:10:48.781] "remote.SSH.showLoginTerminal": false [01:10:48.782] "remote.SSH.defaultExtensions": [] [01:10:48.782] "remote.SSH.loglevel": 2 [01:10:48.782] "remote.SSH.enableDynamicForwarding": true [01:10:48.782] "remote.SSH.enableRemoteCommand": false [01:10:48.782] "remote.SSH.serverPickPortsFromRange": {} [01:10:48.782] "remote.SSH.serverInstallPath": {} [01:10:48.786] VS Code version: 1.88.1 [01:10:48.786] Remote-SSH version: remote-ssh@0.110.1 [01:10:48.787] win32 x64 [01:10:48.790] SSH Resolver called for host: 3.120.179.73 [01:10:48.790] Setting up SSH remote "3.120.179.73" [01:10:48.795] Using commit id "e170252f762678dec6ca2cc69aba1570769a5d39" and quality "stable" for server [01:10:48.801] Install and start server if needed [01:10:48.805] Checking ssh with "C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe -V" [01:10:48.808] Got error from ssh: spawn C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe ENOENT [01:10:48.809] Checking ssh with "C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe -V" [01:10:48.810] Got error from ssh: spawn C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe ENOENT [01:10:48.810] Checking ssh with "C:\Program Files\Razer Chroma SDK\bin\ssh.exe -V" [01:10:48.811] Got error from ssh: spawn C:\Program Files\Razer Chroma SDK\bin\ssh.exe ENOENT [01:10:48.811] Checking ssh with "C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe -V" [01:10:48.812] Got error from ssh: spawn C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe ENOENT [01:10:48.812] Checking ssh with "C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe -V" [01:10:48.814] Got error from ssh: spawn C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe ENOENT [01:10:48.814] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [01:10:48.815] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [01:10:48.815] Checking ssh with "C:\WINDOWS\ssh.exe -V" [01:10:48.816] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [01:10:48.816] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [01:10:48.817] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [01:10:48.817] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [01:10:48.818] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [01:10:48.818] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [01:10:48.851] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[01:10:48.854] Using SSH config file "C:\Users\Olga Orlova.ssh\config" [01:10:48.854] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 52612 -F "C:\Users\Olga Orlova.ssh\config" "3.120.179.73" bash [01:10:48.858] Terminal shell path: C:\WINDOWS\System32\cmd.exe [01:10:49.133] > ]0;C:\WINDOWS\System32\cmd.exe [01:10:49.133] Got some output, clearing connection timeout [01:11:10.152] > ssh: connect to host 3.120.179.73 port 22: Connection timed out [01:11:10.173] > The process tried to write to a nonexistent pipe. [01:11:11.428] "install" terminal command done [01:11:11.428] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exessh: connect to host 3.120.179.73 port 22: Connection timed out [01:11:11.428] Received install output: ]0;C:\WINDOWS\System32\cmd.exessh: connect to host 3.120.179.73 port 22: Connection timed out [01:11:11.430] Resolver error: Error: The connection timed out at g.Offline (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:499232) at c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:495257 at t.handleInstallOutput (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:495572) at t.tryInstall (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:620043) at async c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:579901 at async t.withShowDetailsEvent (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:583207) at async k (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:576866) at async t.resolve (c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:580578) at async c:\Users\Olga Orlova.vscode\extensions\ms-vscode-remote.remote-ssh-0.110.1\out\extension.js:2:846687 [01:11:11.436] ------

已提問 2 年前檢視次數 285 次

1 個回答
0

Hello.

Have you tried restarting the EC2 side?
This may be improved by restarting EC2.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html

It may depend on the size of the copied file, but if the file is large, the load may be high and a timeout error may occur temporarily.

專家

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。