# 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.
$ sudo apt-get install aspnetcore-runtime-2.1
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-runtime-deps-5.0 : Depends: libssl1.0.0 but it is not installable or
libssl1.0.2 but it is not installable or
libssl1.1 but it is not installable
dotnet-sdk-5.0 : Depends: netstandard-targeting-pack-2.1 (>= 2.1.0) but it is not installable
Depends: dotnet-targeting-pack-5.0 (>= 5.0.0) but it is not installable
Depends: aspnetcore-targeting-pack-5.0 (>= 5.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
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: