lightsail Django can not connect with SSH sometime.

0

lightsail Django can not connect with SSH sometime. only can restart to fix it.

CHEN
已提問 23 天前檢視次數 76 次
3 個答案
0

and I got a issue, when I restarted the server, the Postgresq can not start with Bitnami.

CHEN
已回答 23 天前
0

Hello.

Have you checked the OS system logs during the time period when you were unable to connect?
Also, are you experiencing high CPU usage or memory usage?
When a high load occurs, SSH etc. may become unavailable.

and I got a issue, when I restarted the server, the Postgresq can not start with Bitnami.

Are there any errors when starting up?

profile picture
專家
已回答 23 天前
0

Check Instance Status: Ensure that your Lightsail instance is running and healthy. You can do this by logging into the Lightsail console and checking the instance status.

Review Firewall Settings: Verify that your instance's firewall settings allow SSH connections. Check the networking tab in the Lightsail console to ensure that port 22 (SSH) is open for inbound connections.

SSH Key Pair: Confirm that you're using the correct SSH key pair to authenticate with your Lightsail instance. Ensure that the private key on your local machine matches the public key configured on the instance.

Network Connectivity: Check your local network connection for stability. Intermittent network issues can sometimes cause SSH connection problems. You can try connecting from a different network to see if the issue persists.

Instance Resource Usage: Monitor the resource utilization of your Lightsail instance. High CPU or memory usage could impact SSH responsiveness. You can view resource metrics in the Lightsail console or SSH into the instance and use system monitoring tools like top.

System Logs: Review the system logs on your Lightsail instance for any errors or warnings related to SSH connections. You can access the logs via SSH (/var/log/auth.log or /var/log/secure depending on the operating system).

Restart SSH Service: If all else fails, try restarting the SSH service on your Lightsail instance. SSH into the instance and run the command sudo service ssh restart.
已回答 23 天前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南