By using AWS re:Post, you agree to the AWS re:Post Terms of Use

lightsail Django can not connect with SSH sometime.

0

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

asked 7 months ago172 views
3 Answers
1

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.
profile picture
EXPERT
answered 7 months ago
EXPERT
reviewed 5 months ago
0

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

answered 7 months ago
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
EXPERT
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions