Can not connect to AWS parse server on Mac : ssh_exchange_identification: Connection closed by remote host - macos

The image from my terminal
Hi, I am following a Swift Xcode class, and now we are building a project required to connect with AWS parse server, After tried lots of times, it still the same error: ssh_exchange_identification: Connection closed by remote host
Here is the error message:
luodeMacBook-Air:desktop luo$ chmod 400 onepicioskeypair.pem luodeMacBook-Air:desktop luo$ ssh -i "onepicioskeypair.pem" ubuntu#ec2-18-216-187-86.us-east-2.compute.amazonaws.com ssh_exchange_identification: read: Operation timed out luodeMacBook-Air:desktop luo$

Please verify you are trying with correct ip address or url.
change EC2 setting to Allow all IP address
and restart instance and try again

Related

GRPC server on Mac not working when using laptop's actual IP address instead of localhost

I am following the GRPC tutorials here https://grpc.io/docs/languages/python/.
In greeter_client.py over here - https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_client.py, instead of using
with grpc.insecure_channel('localhost:50051') as channel:
(the above code works fine), I use the following -
with grpc.insecure_channel('XX.XX.XX.XX:50051') as channel:
where XX.XX.XX.XX is my laptop's public IP address from https://www.whatsmyip.org/.
I get this error
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:XX.XX.XX.XX:50051: Failed to connect to remote host: Connection refused"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:XX.XX.XX.XX:50051: Failed to connect to remote host: Connection refused {created_time:"2022-12-29T23:18:44.033798+00:00", grpc_status:14}"
does anyone know why this happens? I think this might be a MacOS issue. Mine is a MacOS Monterey, and I have the firewalls all disabled, so I am not sure what else I should be doing. Is this expected behaviour?
Turns out, the best way to deal with this is by using ngrok. The steps would be something like -
Download ngrok (can use brew install ngrok)
Set up forwarding using something like ngrok tcp 50051
Once you click 'enter', there will be a field under Forwarding, which you should then use. Remember to remove the tcp://

MC can't Add a Cloud Storage Device

I am trying to create a MinIO Server and Client so I can run some tests and I am getting the error bellow when I try to run mc:
C:\mc.exe alias set myminio http://169.254.44.236:9000 admin password
mc.exe: <ERROR> Unable to initialize new alias from the provided credentials. Get
"http://169.254.44.236:9000/probe-bucket-sign-6oubmdhiezos/?location=": dial tcp
169.254.44.236:9000: connectex: A socket operation was attempted on an unreachable network.
I just copied the command given to me when I started the MinIO Server. I am using a Windows10 PC remotely.

Getting error instalingl wget in RHEL EC2 instance

Getting this message when trying to install wget in RHEL EC2 instance. How to resolve this?
Error: Failed to download metadata for repo 'rhui-client-config-server-8': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://rhui3.ap-south-1.aws.ce.redhat.com/pulp/mirror/protected/rhui-client-config/rhel/server/8/x86_64/os [Connection timed out after 30000 milliseconds]
If you set up SSH for the EC2 instance, try and SSH into the machine, and try
curl -I https://www.google.com
and if it times out, you perhaps can't connect to the internet.
You need to check if the relevant Security Group has an outbound rule allowing connections to the internet:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html?icmpid=docs_ec2_console#security-group-rules
There are a few useful hints in https://access.redhat.com/discussions/4656371 as well, if the issue is related to your subscription.

Unable to connect to EC2 Ubuntu instance from Putty

Im getting the error : Putty Fatal Error. Network Error: Connection Refused.
Security Group SSH rule:
I was able to connect to the instance a few hours ago. I did not change anything. What am I missing? Please help.
Instance is running :
Putty configuration:
System Log:
Btw, i am able to RDP to the instance by following https://aws.amazon.com/premiumsupport/knowledge-center/connect-to-linux-desktop-from-windows/

Server unexpectedly closed network connection in ftp and putty - Amazon server

we are using amazon server and the Instance works fine. But, suddenly it stops in ftp and shows the below error:
Error: Server unexpectedly closed network connection
Error: Could not connect to server.
But, instance is running correctly and adminer also opens fine. Only ftp and putty does not open.

Resources