SSH Passwordless Login
Introduction
In this article, we will try to setup password-less login using ssh keys to connect to remote Linux servers without entering a password.
open your preferred terminal and follow the steps:
Generate Authentication Keys on local machine
ssh-keygen -t rsa
Create .ssh Directory on remote machine
ssh <user>@<remote-ip-adress> mkdir -p .ssh
Upload Generated Public Keys to remote machine
cat .ssh/id_rsa.pub | ssh <user>@<remote-ip-adress> 'cat >> ~/.ssh/authorized_keys'
Login to remote machine
ssh <user>@<remote-ip-adress>