Google: Difference between revisions

Line 121:
== SSH to remote server ==
;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:
- Using IP Correct in client side.
- DNS Correct? try host file entry or direct ip access
- Port Correct
- Routes in intermediate devices.
- Packets going out of Client? check dest trace. Iptables might hv blocked, or networking issue.
 
If yes check:
- Reply packets going or not? if going, check Router reverse routes.
Line 133 ⟶ 141:
- Networking Config
- Interface check? correct ip on correct interface?
- Host Level Networking in GCP/VMWare
 
If Yes check:
- Firewall blocking traffic for port 22?
- Firewall blocking all external traffic?
- Host Level Firewall dropping SSH traffic?
 
 
;SSH Config File:
Line 161 ⟶ 170:
ssh: connect to host 192.168.1.51 port 22: No route to host
 
;Wrong Port: OR SSH Not installed (TCP Reset is sent)
ssh: connect to host 192.168.1.50 port 2222: Connection refused
 
Line 168 ⟶ 177:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
 
;Check Service logs:
;Journalctl:
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 ==