How do I enable public key authentication?

How do I enable public key authentication?
Answer
Procedure
  1. Use the ssh-keygen tool to create a key pair. …
  2. Validate that the keys were generated. …
  3. Enable key-based authentication in the /etc/ssh directory on the SSH server. …
  4. Copy the rsa. …
  5. If you have an existing authorized_keys file, edit it to remove any no-pty restrictions.
 

Tìm kiếm

Back
Top