简体   繁体   中英

Not able to connect to EC2 instance from a different IP address

I have an EC2 instance that has an IPv4 filter for my IP Address only. However, I'd like a friend of mine to get access (who lives in another city). I currently maintain the IP Address filters on my management console.

I have UFW enabled (however, I limit UFW everywhere for the ssh port).

I added my friend's IP address in the AWS management console, but he's unable to access the server (we have checked all the pem files).

My questions:

  1. Is there a limit on the number of IP addresses that I can enter using aws management console?
  2. Is UFW clashing with management console here?
  3. If I want to provide access to my friend, is there any other way (apart from VPN - We tried it, but we couldn't implement it)?

So troubleshooting stuff

1: Ask your friend check is IP address again is that static or not . http://whatismyipaddress.com/

2: Ask him to test using telnet command

telnet IPADDRESSOFSERVER 22

3: Check you setting again on security group it should be like SSH open to XX.XX.XX.XX/32 this is your friend IP address

let us know above results

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM