Which local file has to be transmitted to a remote SSH server in order to be able to log into the remote server using SSH keys?

The content of which local file has to be transmitted to a remote SSH server in order to be able to log into the 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

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “Which local file has to be transmitted to a remote SSH server in order to be able to log into the remote server using SSH keys?

  1. Naturally answer is C. You must send your public key to the server’s authorized keys so you can log in using your private key in local and your public key transferred remotely.
    it makes no sense to send your authorized_keys to the remote server.

  2. A. ~/.ssh/authorized_keys …public key on remote server
    C. ~/.ssh/id_rsa.pub.. public key on local
    D. ~/.ssh/id_rsa.. private key on local , do not share

  3. The answer should be “C” because with key-based authentication you need to transfer your SSH public key to the remote server which will be placed in the remote server authorized_keys file. The same article is telling to use ssh-copy-id which does the transfer of your id_rsa.pub to the authorized_keys on the remote server.

    8
    1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.