# Providing permissionchmod400pemfile.pemssh-i#pem_path user@ip#after connected to the serversudosuroot#passwdNewPassword:root#sudopasswduserNewPassword:root#sudosuuseruser# cd /etc/ssh/sudonanosshd_config# change no to yes herePermitRootLoginyes# change no probitted to yesPasswordAuthenticationyes#savedsystemctlstatussshsystemctlrestartssh#now you can connect your instance with any machine:sshuser@ippasswd
Now let's install nginx on the system after connecting instance.
$sudoapt-getinstallaspnetcore-runtime-2.1Readingpackagelists...Buildingdependencytree...Readingstateinformation...Somepackagescouldnotbeinstalled.ThismaymeanthatyouhaverequestedanimpossiblesituationorifyouareusingtheunstabledistributionthatsomerequiredpackageshavenotyetbeencreatedorbeenmovedoutofIncoming.Thefollowinginformationmayhelptoresolvethesituation:Thefollowingpackageshaveunmetdependencies:dotnet-runtime-deps-5.0:Depends:libssl1.0.0butitisnotinstallableorlibssl1.0.2butitisnotinstallableorlibssl1.1butitisnotinstallabledotnet-sdk-5.0:Depends:netstandard-targeting-pack-2.1 (>= 2.1.0) but it is not installableDepends:dotnet-targeting-pack-5.0 (>= 5.0.0) but it is not installableDepends:aspnetcore-targeting-pack-5.0 (>= 5.0.0) but it is not installableE:Unabletocorrectproblems,youhaveheldbrokenpackages.
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: