Google: Difference between revisions
→SSH to remote server
Line 122:
GCP VM
Timed out
SSH Config File:
/etc/ssh/sshd_config # sshd server configuration file
Port 22
ListenAddress 0.0.0.0
PermitRootLogin prohibit-password
PubkeyAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
KerberosAuthentication no
UsePAM yes
Banner none
TCPKeepAlive yes
/etc/ssh/sshd_config # ssh client configuration file
Restart SSHD:
sudo systemctl restart sshd.service
sudo systemctl status sshd.service
Wrong IP:
ssh: connect to host 192.168.1.51 port 22: No route to host
Wrong Port:
ssh: connect to host 192.168.1.50 port 2222: Connection refused
Netstat:
netstat -ant | grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
Journalctl:
journalctl -xe
== System Design ==
|