August 31, 2019 Vignesh Sathiyanantham

The default user for Amazon Linux 2 is ec2-user, first, we need to create a password for the ec2-user [ec2-user@ip-164 ]$ sudo passwd ec2-user Changing password for user ec2-user. New password: Retype new password: passwd: all authentication tokens updated successfully. Then enable the password authentication for the Login in the SSHD config file sudo nano /etc/ssh/sshd_config Find the PasswordAuthentication no and set it to yes Restart the SSHD Service sudo systemctl restart sshd

August 18, 2019 Vignesh Sathiyanantham

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 sudo passwd ubuntu Changing password for user ubuntu. New password: Retype new password: I set the password for the account, then enable the password authentication in the SSH config file sudo nano /etc/ssh/sshd_config Find the PasswordAuthentication no and set it to yes PasswordAuthentication yes sudo service ssh restart Reference:

August 13, 2019 Vignesh Sathiyanantham

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 REST and how to test with Postman Basic Authentication in REST API Basic authentification is a standard HTTP header with the user and password encoded in base64 : Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==.The userName and password are encoded in the format username: password. This is one of the simplest technique to protect the REST resources because it does not require cookies. session…