The SSH TCP port 22 is in the listening state. The SSH service is running on the instance. On your remote ssh client, connect using the WAN IP address, not the LAN IP address: ssh -p 22 me205.124.456.789. deleting all retained keys (in case something got corrupted) (didn't work)ĭebug1: Reading configuration data /etc/ssh/ssh_configĭebug1: /etc/ssh/ssh_config line 21: Applying options for *ĭebug1: Connecting to port 22.ĭebug1: connect to address 11.22.33. There isnt a firewall blocking the connection. Inbound ssh packets on port 22 (or whatever port you choose) must be forwarded to the server's LAN IP address.
I have the public key on my GitLab profile and the the private key in my C:/Users/Please make sure you have the correct access rights and the repository exists.
Why is my EC2 Linux instance unreachable and. ssh: connect to hostssh: connect to host port 22: Network is unreachable fatal: Could not read from remote repository.
deleting known hosts (in case something got corrupted) (didn't work) Error message: ssh: connect to host port 22: Connection timed out. git clone :restarting the ssh service (didn't work) Note, we typically log in via password, not via keys. What is interesting, this connection worked correctly a few months ago, but I reinstalled the SSHD and now is the problem. When I try to do this, I see the statement: ssh: connect to host XX.XX.XX.XX port 22: Network is unreachable.
Of course, the power is back, and we can log in locally, however, we keep getting a "Connection refused" message when trying to ssh in. Unfortunately I can't connect with my laptop from PC. We had a RHEL server running well for almost two months and then, suddenly after a power outage, we cannot ssh in.