Recently i posted on Installing MariaDB on AWS EC2 instance and securing the installation. After securing the installation, the root user login is failing with error Access denied for user ‘root’@’localhost’ (using password: YES) The problem is the root user…
The default user for Amazon Linux 2 is ec2-user, first, we need to create a password for the ec2-user Then enable the password authentication for the Login in the SSHD config file Restart the SSHD Service
I created a Ubuntu 18.04 Instance in AWS, then I connected to the instance using the pem file using ssh -i pemfile ubuntu@public-IP I set the password for the account, then enable the password authentication in the SSH config file…
In this post will see how to secure the REST API using Basic Authentication with Spring security features. In this example, we will be using Spring boot to avoid basic configuration I will describe only the security part of Spring…