1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
Are you able to SSH from your local to any other remote server e.g. any other Lightsail instance ? (to rule out any outbound issues at your local network side)
Also could you try the ssh
command with -vvv
option which will show debug output and may help you see where or why the SSH attempt is getting stuck/failing.
Thanks.
Relevant content
- asked 8 months ago
- asked 3 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago
Here is the verbose output for ssh
I553@M .ssh % ssh -vvv centos@<my-public-ip> OpenSSH_9.4p1, LibreSSL 3.3.6 debug1: Reading configuration data /Users/I553275/.ssh/config debug1: /Users/I553275/.ssh/config line 1: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files debug1: /etc/ssh/ssh_config line 54: Applying options for * debug2: resolve_canonicalize: hostname <my-public-ip> is address debug3: expanded UserKnownHostsFile '
/.ssh/known_hosts' -> '/Users/I553275/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '/.ssh/known_hosts2' -> '/Users/I553275/.ssh/known_hosts2' debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug3: ssh_connect_direct: entering debug1: Connecting to <my-public-ip> [<my-public-ip>] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48(I have masked ip-address with <my-public-ip> for security reasons)
Just now I created a new Lightsail ubuntu instance and tried to connect to it over SSH, it has the same issue.
Looks like my ISP or my network is blocking outbound requests to port 22. I am able to connect SSH from my PC, if I am connected to a mobile hotspot.
Thank you so much!
No problem! Glad we got it figured out :)