linux_wiki:configure_key-based_authentication

This is an old revision of the document!


Configure Key-based Authentication

General Information

SSH key based authentication (password-less).


SSH Key Creation and Distribution

Key based authentication involves a private and public key.
The private key stays on the source system, the public key is distributed to all remote systems.

Generate the private/public key pair.

ssh-keygen
  • RSA is the default key type
  • Prompted for file to save private key (~/.ssh/id_rsa)
  • Prompted for file to save public key (~/.ssh/id_rsa.pub)


Copy the public key to a remote system

ssh-copy-id user@myserver
  • Prompted for password login
  • Next normal ssh login will be password-less

  • linux_wiki/configure_key-based_authentication.1473212698.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)