QuestionQ2

System Security

Which local file’s contents must be sent to a remote SSH server so that you can log in to that remote server using SSH keys?

  • A ~/.ssh/authorized_keys
  • B ~/.ssh/config
  • C ~/.ssh/id_rsa.pub
  • D ~/.ssh/id_rsa
  • E ~./ssh/known_hosts
Explanation

SSH key-based authentication works by placing the client’s public key in the remote account’s ~/.ssh/authorized_keys file. For an RSA key pair, that public key is stored locally in ~/.ssh/id_rsa.pub; the private key must not be transmitted. OpenSSH sshd(8) manual

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!