githubEdit

Amazon Lightsail for ASP.NET Core

Using Amazon Lightsail for ASP.NET Core

Instance running for lightsail

Steps I did after creating instance

# Providing permission
chmod 400 pemfile.pem
ssh -i  #pem_path user@ip

#after connected to the server
sudo su
root# passwd
New Password: 
root# sudo passwd user
New Password: 
root# sudo su user
user # cd /etc/ssh/
sudo nano sshd_config

# change no to yes here
PermitRootLogin yes

# change no probitted to yes
PasswordAuthentication yes

#saved
systemctl status ssh
systemctl restart ssh

#now you can connect your instance with any machine:
ssh user@ip
passwd

Now let's install nginx on the system after connecting instance.

Now time to install asp.net core

Install the .NET Core Runtime

I got a error:

Ubuntu 22.04 has upgraded libssl to 3 and does not propose libssl1.1

You can force the installation of libssl1.1 by adding the ubuntu 20.04 source:

Problem is fixed.

This time I got next error.

Solution:

This also not worked:

Sucked here

Tried with azure documentation for ec2 cli:

1) It took so much time, so I tried to ctrl + c to exit and I got the error 1.

Error 1: error MSB6006

2) It took too much time, after exiting from the command. I got the error 2.

Error 2: error MSB6006

Last updated