Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lightsail display empty blackscreen after connect with SSH

I have created AWS lightsail instance for learning purposes. I downloaded the key file and created a public key with it and store it in the .ssh/authorized_keys file.

For the testing, I tried to connect with ssh via my terminal. It was connected and worked fine and I closed the connection and reboot the server.

After reboot the server I tried to connect again with a key file from my terminal and I was not able to log in. I logged in to the AWS console and try to connect from that end and, it was giving me an empty black screen window.

Any suggestions?

like image 945
Yash Avatar asked Nov 19 '25 18:11

Yash


1 Answers

As of my experience this black screen due to main two reasons

  1. Your current user have no permission to asses, so you delete the current instance then create new one. After new instance creation first you provide the user permission by ssh connect below codes for your reference

open ssh_config file

sudo nano /etc/ssh/sshd_config 

Add below codes:

    CASignatureAlgorithms +ssh-rsa    
    PubkeyAcceptedAlgorithms +ssh-rsa    
    PermitRootLogin yes
    PasswordAuthentication no
    PubkeyAuthentication yes
    AllowUsers ubuntu

then save file and sudo systemctl restart sshd for restart

  1. sudo ufw disable
like image 96
Rafeeque Avatar answered Nov 21 '25 10:11

Rafeeque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!