Configure SSH to use key-based authentication, which allows connecting to a remote server without entering a password.
This method uses a pair of cryptographic keys to authenticate to the SSH server, enhancing security.
Generate SSH keys using:
ssh-keygen
NOTE: This command creates a private key and a corresponding public key.
Copy the SSH public key to a remote server using:
ssh-copy-id <username>@IP_address_of_the_server
NOTE: This command appends the public key to the remote user ~/.ssh/authorized_keys file, allowing key-based authentication.