Google: Difference between revisions
Content added Content deleted
Line 121: | Line 121: | ||
== SSH to remote server == |
== SSH to remote server == |
||
;GCP VM SSH Connection Timed out |
;GCP VM SSH Connection Timed out |
||
Existing connection timed out or a new one? |
|||
Was it idle connection? |
|||
It not, is there any network disconnection/lantency/congestion? |
|||
SSH Packets are reaching Destination? TCPDump on Destination. If not check: |
SSH Packets are reaching Destination? TCPDump on Destination. If not check: |
||
- IP Correct |
- Using IP Correct in client side. |
||
- DNS Correct |
- DNS Correct? try host file entry or direct ip access |
||
- Port Correct |
- Port Correct |
||
- Routes in intermediate devices. |
|||
- Packets going out of Client? check dest trace. Iptables might hv blocked, or networking issue. |
|||
If yes check: |
If yes check: |
||
- Reply packets going or not? if going, check Router reverse routes. |
- Reply packets going or not? if going, check Router reverse routes. |
||
Line 133: | Line 141: | ||
- Networking Config |
- Networking Config |
||
- Interface check? correct ip on correct interface? |
- Interface check? correct ip on correct interface? |
||
- Host Level Networking in GCP/VMWare |
|||
If Yes check: |
If Yes check: |
||
- Firewall blocking traffic for port 22? |
- Firewall blocking traffic for port 22? |
||
- Firewall blocking all external traffic? |
- Firewall blocking all external traffic? |
||
- Host Level Firewall dropping SSH traffic? |
|||
;SSH Config File: |
;SSH Config File: |
||
Line 161: | Line 170: | ||
ssh: connect to host 192.168.1.51 port 22: No route to host |
ssh: connect to host 192.168.1.51 port 22: No route to host |
||
;Wrong Port |
;Wrong Port OR SSH Not installed (TCP Reset is sent) |
||
ssh: connect to host 192.168.1.50 port 2222: Connection refused |
ssh: connect to host 192.168.1.50 port 2222: Connection refused |
||
Line 168: | Line 177: | ||
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN |
||
;Check Service logs: |
|||
;Journalctl: |
|||
journalctl -xe |
journalctl -xe |
||
;SSH Version: |
|||
telnet 192.168.1.50 22 |
|||
Trying 192.168.1.50... |
|||
Connected to 192.168.1.50. |
|||
Escape character is '^]'. |
|||
SSH-2.0-OpenSSH_8.0p1 Ubuntu-6build1 |
|||
== System Design == |
== System Design == |