How to setup SSH Key-Based Authentication (Private & Public keys)
What is SSH ? SSH – secure shell is a protocol that helps systems to in an secure & encrypted manner over an network Using SSH, we can create a secure connection to the remote server using a specific user account & get the shell session on the remote server as that user & can perform tasks NOTE: In order to login to the remote server, we need sshd service running in the remote server How to setup SSH Key-Based Authentication ? There are few advantages of using SSH Key-Based Authentication • Getting access to the system by password guessing techniques is defeated • With passphrase-protected private keys, Both the passphrase and a copy of the private key is needed. This is based on private-public key mechanism A private key, a matching public key is needed for this The private key acts like a password, which must be preserved securely, Public key is copied to the system the user wants to access When try to access the remote ...