AWS EC2:ssh:호스트에 연결 10.0.0.206 포트 22:약

0

질문

OS:Ubuntu

공공 IP 는 곳에서 나도 ssh:153.5.57.2

보안률:

인바운드:

Name
    Security group rule ID
    IP version
    Type
    Protocol
    Port range
    Source
    Description
    –   sgr-01a63df5e26bc8e9a   IPv4    HTTP    TCP 80  0.0.0.0/0   –
    –   sgr-0cafa26a9ca34ccbe   IPv4    SSH TCP 22  153.5.57.2/32   –
    –   sgr-047038a9c030dd52b   IPv4    HTTPS   TCP 443 0.0.0.0/0   –

아웃바운드:

Name
    Security group rule ID
    IP version
    Type
    Protocol
    Port range
    Destination
    Description
    –   sgr-0812dc9c3b21745e1   IPv4    All traffic All All 0.0.0.0/0   –

ACL 규칙(인바운드 및 아웃바운드)

Rule number
    Type
    Protocol
    Port range
    Source
    Allow/Deny

22  SSH (22)    TCP (6) 22  153.5.57.2/32 Allow

100 All traffic All All 0.0.0.0/0 Allow

\*  All traffic All All 0.0.0.0/0 Deny

라우팅 테이블:

Destination
    Target
    Status
    Propagated

10.0.0.0/24 local Active    No

인터넷 게이트웨이 연결을 내 VPC.

서브넷 연결을 내 VPC.

라우팅 테이블 과 연결된 서브넷.

ACL 규칙 과 관련 서브넷.

ssh -vvv -i "my-private-key.pem" [email protected]
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 10.0.0.206 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.0.0.206 [10.0.0.206] port 22.
debug1: connect to address 10.0.0.206 port 22: Connection timed out
ssh: connect to host 10.0.0.206 port 22: Connection timed out
amazon-ec2 amazon-web-services ssh
2021-11-23 10:41:22
1

최고의 응답

1

보안 그룹이 허가에서 액세스:

SSH TCP 22  153.5.57.2/32

따라서,그것은 당신이 원하는 연결하는 컴퓨터에서 인터넷 을 Amazon EC2 인스턴스입니다.

그러나,당신을 명령을 사용하기:

ssh -vvv -i "my-private-key.pem" [email protected]

의 IP 주소 10.0.0.206개인 IP 주소만을 이용하실 수 있 VPC. 그것은 지 않는 인터넷에서 액세스할 수 있습니다.

액세스 EC2 인스턴스에서:인터넷

  • 인스턴스가 필요합 공용 IP 주소
  • 인스턴스 요구에서 공 서브넷 (으로 정의하는 서브넷는 경로가 있는 테이블 항목하는 인터넷 게이트웨이)
  • 을 지정할 필요가 공용 IP 주소에 연결할 때 인스턴스
2021-11-23 21:20:07

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................