Amazon Lightsail for ASP.NET Core
Using Amazon Lightsail for ASP.NET Core

# 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


Last updated