Skip to content

SSL Connection time out

0

i have two ec2 instachce, such as i-028b370fb43af4e00, i-0b00b9aeb85dde443 I count access them via SSH until 22th Aug. I didn't do anything and my network doesn't have any problem. 22 port opened. can access other's ec2 via 22 port, ssh only I can't access my ec2 from all of my office's computer. in my console doesn't show my problem, error. What shoud i do ?

asked a year ago268 views
4 Answers
2
EXPERT
answered a year ago
EXPERT
reviewed a year ago
0

Hello.

Is it possible to connect via Systems Manager Session Manager or EC2 Instance Connect instead of SSH?
If you can connect to EC2 using these methods, please check the sshd log and whether sshd is running.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html

EXPERT
answered a year ago
EXPERT
reviewed a year ago
0
  1. Security Group: Double-check the Security Group associated with your EC2 instances. Ensure that:
    • Inbound rules allow SSH (port 22) from your office's IP range or 0.0.0.0/0 (if you're using a VPN).
    • Outbound rules allow SSH (port 22) to your office's IP range or 0.0.0.0/0.
  2. Network ACLs: Verify that Network ACLs (Access Control Lists) are not blocking SSH traffic. Check:
    • Inbound and outbound rules for the subnet where your EC2 instances reside.
  3. EC2 Instance Configuration: Ensure that:
    • The EC2 instances are running and have a public IP or Elastic IP (EIP) associated.
    • The SSH server is running and configured correctly on both instances.
  4. SSH Key Pair: Verify that:
    • You're using the correct SSH key pair for authentication.
    • The key pair is properly configured and associated with your EC2 instances.
  5. Office Network Configuration: Check your office network configuration:
    • Ensure that there are no firewall rules or network restrictions blocking SSH traffic to your EC2 instances.
  6. AWS Region: Confirm that you're trying to access the correct AWS region where your EC2 instances are located.
  7. SSH Client: Try using a different SSH client or version to rule out any client-specific issues.
  8. AWS Console: Check the AWS Console for any error messages or warnings related to your EC2 instances or Security Groups.
EXPERT
answered a year ago
0

Have the instances been stopped and started (this is different to being rebooted)? Stopping and starting will cause the public IP address to change.

You also specify that it's your office computer that you can't access from, so could its IP address have changed (or could the connection be going through a proxy whose IP address has changed)? If an address (or range) is hard coded into the security group then any change to the source IP could fall outside this. Consider opening the source to 0.0.0.0/0 just to see if you can get it working. You can always tighten it up again later.

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.