====== Ubuntu - SSH - Use SSH without a password ======
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 =====
Generate SSH keys using:
ssh-keygen
**NOTE:** This command creates a private key and a corresponding public key.
* The private key is kept secret and secure by the user, while the public key can be shared with any SSH server you wish to connect to.
----
===== Copy the SSH public key to a remote server =====
Copy the SSH public key to a remote server using:
ssh-copy-id @IP_address_of_the_server
**NOTE:** This command appends the public key to the remote user **~/.ssh/authorized_keys** file, allowing key-based authentication.
----